summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-02-14 10:18:01 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-02-14 10:18:01 -0200
commit03e96afb7d6e4c2a14f925014d011cfc7bad1437 (patch)
treeeec99cfd4d713637c46fbc9f6555a1c22aa2c831
parent8878f4bb0a418c35188a5d1ecf851a5a28600d65 (diff)
downloadpfsense-03e96afb7d6e4c2a14f925014d011cfc7bad1437.zip
pfsense-03e96afb7d6e4c2a14f925014d011cfc7bad1437.tar.gz
Set $interfacegw properly and avoid losing default route in some circumstances
-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 cfed4eb..de3d197 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -380,6 +380,7 @@ function system_routing_configure($interface = "") {
if ($gateway['gateway'] == "dynamic")
$gateway['gateway'] = get_interface_gateway($gateway['interface']);
$gatewayip = $gateway['gateway'];
+ $interfacegw = $gateway['interface'];
if (!empty($gateway['interface'])) {
$defaultif = get_real_interface($gateway['interface']);
if ($defaultif)
@@ -390,6 +391,7 @@ function system_routing_configure($interface = "") {
if ($gateway['gateway'] == "dynamic6")
$gateway['gateway'] = get_interface_gateway_v6($gateway['interface']);
$gatewayipv6 = $gateway['gateway'];
+ $interfacegwv6 = $gateway['interface'];
if (!empty($gateway['interface'])) {
$defaultifv6 = get_real_interface($gateway['interface']);
if ($defaultifv6)
OpenPOWER on IntegriCloud