summaryrefslogtreecommitdiffstats
path: root/usr/local/www/load_balancer_pool_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-24 20:45:52 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-24 20:45:52 +0000
commit52031f9f781929d05173edb6939886bf7118aa70 (patch)
tree1e6efa372796c260170b62a9e24284f00e31ff94 /usr/local/www/load_balancer_pool_edit.php
parent83b06cdc94c9465340f2d6ea026ef3536d34b243 (diff)
downloadpfsense-52031f9f781929d05173edb6939886bf7118aa70.zip
pfsense-52031f9f781929d05173edb6939886bf7118aa70.tar.gz
Check interface ip address, not the gateway!
Diffstat (limited to 'usr/local/www/load_balancer_pool_edit.php')
-rwxr-xr-xusr/local/www/load_balancer_pool_edit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/load_balancer_pool_edit.php b/usr/local/www/load_balancer_pool_edit.php
index d59aff7..2c8e4b5 100755
--- a/usr/local/www/load_balancer_pool_edit.php
+++ b/usr/local/www/load_balancer_pool_edit.php
@@ -100,9 +100,9 @@ if ($_POST) {
$ifdescrs['opt' . $j] = "opt" . $j;
}
foreach($ifdescrs as $iface) {
- if($config['interfaces'][$iface]['gateway'] <> "")
- if($config['interfaces'][$iface]['gateway'] == $_POST['gateway'])
- $input_errors[] = "{$_POST['gateway']} is currently being referenced by an interface ip address.";
+ if($config['interfaces'][$iface]['ipaddr'] <> "")
+ if($config['interfaces'][$iface]['ipaddr'] == $_POST['gateway'])
+ $input_errors[] = "{$_POST['gateway']} is currently being referenced by an interface ip address on {$iface}.";
}
}
OpenPOWER on IntegriCloud