diff options
author | Ermal <eri@pfsense.org> | 2010-09-30 15:58:23 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-09-30 15:58:23 +0000 |
commit | ccea4c49c2602cf0644078e8ed4eab301c8c44c4 (patch) | |
tree | ca0173ba684e01e223c4ef701b2e29a50fad31d1 /etc/inc/system.inc | |
parent | 8d29cef48b243096580d1a9e5a83d11a76e1a310 (diff) | |
download | pfsense-ccea4c49c2602cf0644078e8ed4eab301c8c44c4.zip pfsense-ccea4c49c2602cf0644078e8ed4eab301c8c44c4.tar.gz |
Remove legacy code for static routes.
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r-- | etc/inc/system.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 81496ed..10f785c 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -373,12 +373,10 @@ function system_routing_configure($interface = "") { foreach ($config['staticroutes']['route'] as $rtent) { $gatewayip = ""; if (isset($gateways_arr[$rtent['gateway']])) { - $gatewayip = $gateways_arr[$rtent['gateway']]['gateway']; - $interfacegw = $gateways_arr[$rtent['gateway']]['interface']; if ($interface == $gateways_arr[$rtent['gateway']]['friendlyiface']) continue; - } else if (is_ipaddr($rtent['gateway'])) { - $gatewayip = $rtent['gateway']; + $gatewayip = $gateways_arr[$rtent['gateway']]['gateway']; + $interfacegw = $gateways_arr[$rtent['gateway']]['interface']; } else { log_error("Static Routes: Gateway IP could not be found for {$rtent['network']}"); continue; |