diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-10-13 22:40:48 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-10-13 22:40:48 +0000 |
commit | 7c36f9e050407d3691be6aa1ad9e9032fdc26243 (patch) | |
tree | 1110e32d7a4b0e4d44ee4452d8ead571e78730e8 /etc | |
parent | 8fe7e7c855554bbff999d4f48602a4743c1b18eb (diff) | |
download | pfsense-7c36f9e050407d3691be6aa1ad9e9032fdc26243.zip pfsense-7c36f9e050407d3691be6aa1ad9e9032fdc26243.tar.gz |
Revert this and see if it affects any of problem reported on latest builds.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index afc4bef..b9e02db 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -3377,17 +3377,13 @@ function get_interface_gateway($interface) { $gw = NULL; $gwcfg = $config['interfaces'][$interface]; - if (is_ipaddr($gwcfg['gateway'])) { + if (is_ipaddr($gwcfg['gateway'])) $gw = $gwcfg['gateway']; - return $gw; - } else if ($gwcfg['gateway'] <> "") { if (is_array($config['gateways']['gateway_item'])) foreach($config['gateways']['gateway_item'] as $gateway) { if($gateway['name'] == $gwcfg['gateway']) { $gw = $gateway['gateway']; - return $gw; - /* NOTREACHED */ break; } } |