summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@dds.nl>2011-03-04 16:51:39 +0100
committerSeth Mos <seth.mos@dds.nl>2011-03-04 16:51:39 +0100
commit4f33246696457207f14e18dbfa4c543e9e71ace4 (patch)
tree2d9d31f6e3b6f3109b65695a68f01829ff2caf1c
parent4e8e7662c0309f6c83ca9b2ee3eb2e9f1aa95e52 (diff)
downloadpfsense-4f33246696457207f14e18dbfa4c543e9e71ace4.zip
pfsense-4f33246696457207f14e18dbfa4c543e9e71ace4.tar.gz
Fix broken gateway logic that mixed up v4 and v6
-rw-r--r--etc/inc/system.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 4403c6f..4ed6813 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -353,8 +353,8 @@ function system_routing_configure($interface = "") {
$gatewayipv6 = $gateway['gateway'];
$interfacegwv6 = $gateway['interface'];
if (!empty($interfacegwv6)) {
- $defaultif = get_real_interface($gateway['interface']);
- if ($defaultif)
+ $defaultifv6 = get_real_interface($gateway['interface']);
+ if ($defaultifv6)
@file_put_contents("{$g['tmp_path']}/{$defaultif}_defaultgwv6", $gatewayipv6);
}
$foundgwv6 = true;
@@ -369,9 +369,9 @@ function system_routing_configure($interface = "") {
@touch("{$g['tmp_path']}/{$defaultif}_defaultgw");
}
if ($foundgwv6 == false) {
- $defaultif = get_real_interface("wan");
- $interfacegw = "wan";
- $gatewayip = get_interface_gateway_v6("wan");
+ $defaultifv6 = get_real_interface("wan");
+ $interfacegwv6 = "wan";
+ $gatewayipv6 = get_interface_gateway_v6("wan");
@touch("{$g['tmp_path']}/{$defaultif}_defaultgwv6");
}
$dont_add_route = false;
OpenPOWER on IntegriCloud