summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-05-04 21:54:10 +0000
committerErmal <eri@pfsense.org>2011-05-04 21:54:10 +0000
commit8b1e7d04da1a2e1cefbad4b595033cedff4685e5 (patch)
tree5614ca16f3c3d8f43d7ac733b0acc58ebf4cde33 /usr
parent56da23dc5ffebdb6cf52f3b46abebc0ef56e9861 (diff)
downloadpfsense-8b1e7d04da1a2e1cefbad4b595033cedff4685e5.zip
pfsense-8b1e7d04da1a2e1cefbad4b595033cedff4685e5.tar.gz
Correct wrong key for checking if a interface type switched. Ticket #1420
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces.php4
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);
OpenPOWER on IntegriCloud