summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-11-10 15:09:58 (GMT)
committerErmal <eri@pfsense.org>2014-11-10 15:09:58 (GMT)
commit6704590b35ed61ee742975f53a063b8f431e5fe9 (patch)
treeb9459f144c1032f7ee214cf3b64ee55521f96fc6
parentc87d89ae9ff2cb1b50c89c7605a56e1063bafddd (diff)
downloadunivnautes-6704590b35ed61ee742975f53a063b8f431e5fe9.zip
univnautes-6704590b35ed61ee742975f53a063b8f431e5fe9.tar.gz
univnautes-6704590b35ed61ee742975f53a063b8f431e5fe9.tar.bz2
Be sure the same gateway is not processed for v4 and v6
-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;