diff --git a/ajax/networking/get_netcfg.php b/ajax/networking/get_netcfg.php index 50bc637a..78c0013e 100644 --- a/ajax/networking/get_netcfg.php +++ b/ajax/networking/get_netcfg.php @@ -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 diff --git a/app/js/custom.js b/app/js/custom.js index 0ffc1192..4bb85e07 100644 --- a/app/js/custom.js +++ b/app/js/custom.js @@ -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);