From 6704590b35ed61ee742975f53a063b8f431e5fe9 Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 10 Nov 2014 16:09:58 +0100 Subject: [PATCH] Be sure the same gateway is not processed for v4 and v6 --- etc/inc/gwlb.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 28a20fa75..cfbfcc595 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;