diff options
author | Ermal <eri@pfsense.org> | 2010-08-31 20:31:59 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-31 20:32:23 +0000 |
commit | 2db1f5523286bb44a521ba8d142b30d7d10ee2d7 (patch) | |
tree | 2e64a1d8af406a06461a034990f8089800569479 | |
parent | 3d6bbe4c04b4728a030e8ad3199b7d55d1f74aa7 (diff) | |
download | pfsense-2db1f5523286bb44a521ba8d142b30d7d10ee2d7.zip pfsense-2db1f5523286bb44a521ba8d142b30d7d10ee2d7.tar.gz |
There are no interfaces stored in static routes. Correct code for that.
-rw-r--r-- | etc/inc/system.inc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 2f9e874..a547d1b 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -355,12 +355,10 @@ function system_routing_configure($interface = "") { $gateways_arr = return_gateways_array(); foreach ($config['staticroutes']['route'] as $rtent) { - if (!empty($interface) && $interface != $rtent['interface']) - continue; $gatewayip = ""; if (isset($gateways_arr[$rtent['gateway']])) { $gatewayip = $gateways_arr[$rtent['gateway']]['gateway']; - $interfacegw = get_real_interface($rtent['interface']); + $interfacegw = $gateways_arr[$rtent['gateway']]['interface']; } else if (is_ipaddr($rtent['gateway'])) { $gatewayip = $rtent['gateway']; } else { |