summaryrefslogtreecommitdiffstats
path: root/usr/local/www/load_balancer_pool_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-24 21:02:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-24 21:02:19 +0000
commitad356bb7ee29bec22b22ec4d2ba401d561bfe5e4 (patch)
tree6c2345ac3daaee2ef303716a1e66e6d7424567b3 /usr/local/www/load_balancer_pool_edit.php
parent52031f9f781929d05173edb6939886bf7118aa70 (diff)
downloadpfsense-ad356bb7ee29bec22b22ec4d2ba401d561bfe5e4.zip
pfsense-ad356bb7ee29bec22b22ec4d2ba401d561bfe5e4.tar.gz
Split up gateway pools and check them. $_POST['gateway'] has already been moved to the gateway box.
Diffstat (limited to 'usr/local/www/load_balancer_pool_edit.php')
-rwxr-xr-xusr/local/www/load_balancer_pool_edit.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr/local/www/load_balancer_pool_edit.php b/usr/local/www/load_balancer_pool_edit.php
index 2c8e4b5..8baa151 100755
--- a/usr/local/www/load_balancer_pool_edit.php
+++ b/usr/local/www/load_balancer_pool_edit.php
@@ -99,10 +99,13 @@ if ($_POST) {
for ($j = 1; isset ($config['interfaces']['opt' . $j]); $j++) {
$ifdescrs['opt' . $j] = "opt" . $j;
}
- foreach($ifdescrs as $iface) {
- 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}.";
+ foreach($pconfig['servers'] as $svrent) {
+ $split_ip = split("\|", $svrent);
+ foreach($ifdescrs as $iface) {
+ if($config['interfaces'][$iface]['ipaddr'] <> "")
+ if($config['interfaces'][$iface]['ipaddr'] == $split_ip[0])
+ $input_errors[] = "{$split_ip[0]} is currently being referenced by an interface ip address on {$iface}.";
+ }
}
}
OpenPOWER on IntegriCloud