summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-02-18 09:25:41 +0000
committerErmal <eri@pfsense.org>2014-02-18 09:25:41 +0000
commitc79f717a5893443a895b7d09eb8218b5058d1f08 (patch)
treec168428940beeecee0204c2cedd68047bbd9ed71 /etc/inc/system.inc
parent7f9216907f8c17ac1db745709cf98594163226a3 (diff)
downloadpfsense-c79f717a5893443a895b7d09eb8218b5058d1f08.zip
pfsense-c79f717a5893443a895b7d09eb8218b5058d1f08.tar.gz
Really need the interface where v6 is running toa dd the gateway/route rather than the one used for the configuration. This Fixes #3357
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 983eebe..c63def4 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -406,7 +406,7 @@ function system_routing_configure($interface = "") {
$gatewayipv6 = $gateway['gateway'];
$interfacegwv6 = $gateway['interface'];
if (!empty($gateway['interface'])) {
- $defaultifv6 = get_real_interface($gateway['interface'], "inet6");
+ $defaultifv6 = get_real_interface($gateway['interface']);
if ($defaultifv6)
@file_put_contents("{$g['tmp_path']}/{$defaultifv6}_defaultgwv6", $gateway['gateway']);
}
@@ -424,7 +424,7 @@ function system_routing_configure($interface = "") {
@touch("{$g['tmp_path']}/{$defaultif}_defaultgw");
}
if ($foundgwv6 == false) {
- $defaultifv6 = get_real_interface("wan", "inet6");
+ $defaultifv6 = get_real_interface("wan");
$interfacegwv6 = "wan";
$gatewayipv6 = get_interface_gateway_v6("wan");
@touch("{$g['tmp_path']}/{$defaultif}_defaultgwv6");
OpenPOWER on IntegriCloud