Be sure the same gateway is not processed for v4 and v6

This commit is contained in:
Ermal 2014-11-10 16:09:58 +01:00
parent c87d89ae9f
commit 6704590b35
1 changed files with 1 additions and 1 deletions

View File

@ -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;