diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-02-14 10:18:01 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-02-14 10:18:01 -0200 |
commit | 03e96afb7d6e4c2a14f925014d011cfc7bad1437 (patch) | |
tree | eec99cfd4d713637c46fbc9f6555a1c22aa2c831 /etc | |
parent | 8878f4bb0a418c35188a5d1ecf851a5a28600d65 (diff) | |
download | pfsense-03e96afb7d6e4c2a14f925014d011cfc7bad1437.zip pfsense-03e96afb7d6e4c2a14f925014d011cfc7bad1437.tar.gz |
Set $interfacegw properly and avoid losing default route in some circumstances
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 2 |
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) |