diff options
author | Ermal <eri@pfsense.org> | 2011-05-04 21:54:10 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-05-04 21:54:10 +0000 |
commit | 8b1e7d04da1a2e1cefbad4b595033cedff4685e5 (patch) | |
tree | 5614ca16f3c3d8f43d7ac733b0acc58ebf4cde33 /usr | |
parent | 56da23dc5ffebdb6cf52f3b46abebc0ef56e9861 (diff) | |
download | pfsense-8b1e7d04da1a2e1cefbad4b595033cedff4685e5.zip pfsense-8b1e7d04da1a2e1cefbad4b595033cedff4685e5.tar.gz |
Correct wrong key for checking if a interface type switched. Ticket #1420
Diffstat (limited to 'usr')
-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); |