revert part of 3a41b52c to respect http method's purpose

This commit is contained in:
glaszig 2021-05-06 19:12:58 -03:00
parent 6567f99c74
commit e76c31c9c6
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
require '../../includes/csrf.php';
require_once '../../includes/config.php';
$interface = $_POST['iface'];
$interface = $_GET['iface'];
if (isset($interface)) {
// fetch dnsmasq.conf settings for interface

View File

@ -179,7 +179,7 @@ Option toggles are set dynamically depending on the loaded configuration
*/
function loadInterfaceDHCPSelect() {
var strInterface = $('#cbxdhcpiface').val();
$.post('ajax/networking/get_netcfg.php',{iface:strInterface},function(data){
$.get('ajax/networking/get_netcfg.php?iface='+strInterface,function(data){
jsonData = JSON.parse(data);
$('#dhcp-iface')[0].checked = jsonData.DHCPEnabled;
$('#txtipaddress').val(jsonData.StaticIP);