diff options
-rwxr-xr-x | usr/local/www/interfaces.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index ec8d3ee..53df333 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -525,11 +525,11 @@ if ($_POST['apply']) { } } if (!$input_errors) { - if ($wancfg['type'] != $_POST['type']) { + if ($wancfg['ipaddr'] != $_POST['type']) { if (in_array($wancfg['ipaddr'], array("ppp", "pppoe", "pptp", "l2tp"))) { $wancfg['if'] = $a_ppps[$pppid]['ports']; unset($a_ppps[$pppid]); - } else if ($wancfg['type'] == "dhcp") { + } else if ($wancfg['ipaddr'] == "dhcp") { $pid = find_dhclient_process($realif); if($pid) posix_kill($pid, SIGTERM); |