summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-11-10 16:09:58 +0100
committerErmal <eri@pfsense.org>2014-11-10 16:09:58 +0100
commit6704590b35ed61ee742975f53a063b8f431e5fe9 (patch)
treeb9459f144c1032f7ee214cf3b64ee55521f96fc6 /etc
parentc87d89ae9ff2cb1b50c89c7605a56e1063bafddd (diff)
downloadpfsense-6704590b35ed61ee742975f53a063b8f431e5fe9.zip
pfsense-6704590b35ed61ee742975f53a063b8f431e5fe9.tar.gz
Be sure the same gateway is not processed for v4 and v6
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/gwlb.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 28a20fa..cfbfcc5 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -699,7 +699,7 @@ function return_gateways_array($disabled = false, $localhost = false, $inactive
$found_defaultv4 = 1;
}
}
- if (($gateway['friendlyiface'] == "wan") && ($found_defaultv6 == 0) && ($gateway['ipprotocol'] == "inet6")) {
+ else if (($gateway['friendlyiface'] == "wan") && ($found_defaultv6 == 0) && ($gateway['ipprotocol'] == "inet6")) {
if (file_exists("{$g['tmp_path']}/{$gateway['interface']}_defaultgwv6")) {
$gateway['defaultgw'] = true;
$found_defaultv6 = 1;
OpenPOWER on IntegriCloud