summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-02-10 11:26:12 +0000
committerErmal <eri@pfsense.org>2013-02-10 11:26:12 +0000
commit9d595f6ad4527341741e75cdbbeafdcffd99d269 (patch)
tree08ee0160116eee3a208bfb19f13e89d1b36a4e26 /etc/inc
parentdf40755dfd6418d00657902b5968e587beeebc10 (diff)
downloadpfsense-9d595f6ad4527341741e75cdbbeafdcffd99d269.zip
pfsense-9d595f6ad4527341741e75cdbbeafdcffd99d269.tar.gz
Correct setting default gateways
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/system.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index d1bde15..ca7342a 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -379,6 +379,7 @@ function system_routing_configure($interface = "") {
continue;
if ($gateway['gateway'] == "dynamic")
$gateway['gateway'] = get_interface_gateway($gateway['interface']);
+ $gatewayip = $gateway['gateway'];
if (!empty($gateway['interface'])) {
$defaultif = get_real_interface($gateway['interface']);
if ($defaultif)
@@ -388,6 +389,7 @@ function system_routing_configure($interface = "") {
} else if ($gateway['ipprotocol'] == "inet6" && (is_ipaddrv6($gateway['gateway']) || $gateway['gateway'] == "dynamic6")) {
if ($gateway['gateway'] == "dynamic6")
$gateway['gateway'] = get_interface_gateway_v6($gateway['interface']);
+ $gatewayipv6 = $gateway['gateway'];
if (!empty($gateway['interface'])) {
$defaultifv6 = get_real_interface($gateway['interface']);
if ($defaultifv6)
OpenPOWER on IntegriCloud