diff options
author | smos <seth.mos@dds.nl> | 2012-07-18 09:29:27 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-07-18 09:29:27 +0200 |
commit | 206d577719fbfe1c2a17ad55e79eb90058afdec3 (patch) | |
tree | 5ebc2871fdc789871f765ed619d38f25b697446d /etc/inc/gwlb.inc | |
parent | 51c0e71495e540df6e3bf5af3af3ed0bed9987ef (diff) | |
download | pfsense-206d577719fbfe1c2a17ad55e79eb90058afdec3.zip pfsense-206d577719fbfe1c2a17ad55e79eb90058afdec3.tar.gz |
Make sure that we process the logic statement correctly, otherwise we might accidentally end up missing dual stacked or tunneled interface gateways
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r-- | etc/inc/gwlb.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index eef1fca..f064010 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -373,7 +373,7 @@ function return_gateways_array($disabled = false, $localhost = false) { } /* if the gateway is dynamic and we can find the IPv4, Great! */ - if(empty($gateway['gateway']) || ($gateway['gateway'] == "dynamic") && ($gateway['ipprotocol'] == "inet")) { + if((empty($gateway['gateway']) || ($gateway['gateway'] == "dynamic")) && ($gateway['ipprotocol'] == "inet")) { /* we know which interfaces is dynamic, this should be made a function */ switch($wancfg['ipaddr']) { case "dhcp": @@ -395,7 +395,7 @@ function return_gateways_array($disabled = false, $localhost = false) { } /* if the gateway is dynamic6 and we can find the IPv6, Great! */ - if(empty($gateway['gateway']) || ($gateway['gateway'] == "dynamic") && ($gateway['ipprotocol'] == "inet6")) { + if((empty($gateway['gateway']) || ($gateway['gateway'] == "dynamic")) && ($gateway['ipprotocol'] == "inet6")) { /* we know which interfaces is dynamic, this should be made a function, and for v6 too */ switch($wancfg['ipaddrv6']) { case "6rd": |