summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-09-30 15:20:31 +0000
committerErmal <eri@pfsense.org>2010-09-30 15:20:31 +0000
commitf5d3a5ce7f014c046215479f5a504aeec339f204 (patch)
treef4dfcf6c116406f50584b55d41ebc708e44db077 /etc
parentbc50b3321ac6eafffdde4df81e68979cd089d8d6 (diff)
downloadpfsense-f5d3a5ce7f014c046215479f5a504aeec339f204.zip
pfsense-f5d3a5ce7f014c046215479f5a504aeec339f204.tar.gz
Do not support anymore an ip in the 'gateway' section of an interface.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/gwlb.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 4a5b306..b9c1f66 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -501,9 +501,7 @@ function get_interface_gateway($interface, &$dynamic = false) {
$gw = NULL;
$gwcfg =& $config['interfaces'][$interface];
- if (is_ipaddr($gwcfg['gateway']))
- $gw = $gwcfg['gateway'];
- else if (!empty($gwcfg['gateway']) && is_array($config['gateways']['gateway_item'])) {
+ if (!empty($gwcfg['gateway']) && is_array($config['gateways']['gateway_item'])) {
foreach($config['gateways']['gateway_item'] as $gateway) {
if ($gateway['name'] == $gwcfg['gateway']) {
$gw = $gateway['gateway'];
OpenPOWER on IntegriCloud