diff options
author | Ermal <eri@pfsense.org> | 2012-11-21 23:16:49 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-11-21 23:16:49 +0000 |
commit | f382c6de23f3a665c96a96e2fdb02b67b0129cd6 (patch) | |
tree | c74f95df40951f1acdd6da7cfc5b863fe371f407 /etc/inc | |
parent | 70e46e625bd78fbb9e41a51f58a3ef5b6203ddbe (diff) | |
download | pfsense-f382c6de23f3a665c96a96e2fdb02b67b0129cd6.zip pfsense-f382c6de23f3a665c96a96e2fdb02b67b0129cd6.tar.gz |
Correct check
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 30305fa..3c84eb7 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2657,7 +2657,7 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven log_error("Deny router advertisements for interface {$interface}"); mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 -accept_rtadv"); - if (!$g['booting'] && !substr($realif, 0, 4) == "ovpn") { + if (!$g['booting'] && !(substr($realif, 0, 4) == "ovpn")) { /* remove all IPv4 and IPv6 addresses */ while (mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " -alias", true) == 0); while (mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 -alias", true) == 0); |