summaryrefslogtreecommitdiffstats
path: root/usr/local/www/load_balancer_pool_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-08 00:26:50 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-08 00:26:50 +0000
commit99719f570a03b14a1141aea4923e98bb21b26b8d (patch)
treeba53bda5f997729db9c78219369a7501d766c5a9 /usr/local/www/load_balancer_pool_edit.php
parentaffd363b1d3afa22353ebc690f59e83bdf17b05f (diff)
downloadpfsense-99719f570a03b14a1141aea4923e98bb21b26b8d.zip
pfsense-99719f570a03b14a1141aea4923e98bb21b26b8d.tar.gz
Retrofit protocol box
Diffstat (limited to 'usr/local/www/load_balancer_pool_edit.php')
-rwxr-xr-xusr/local/www/load_balancer_pool_edit.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/load_balancer_pool_edit.php b/usr/local/www/load_balancer_pool_edit.php
index c787177..a02970c 100755
--- a/usr/local/www/load_balancer_pool_edit.php
+++ b/usr/local/www/load_balancer_pool_edit.php
@@ -93,8 +93,11 @@ if ($_POST) {
}
}
}
- if ($_POST['monitor'] != "TCP" && $_POST['monitor'] != "HTTP" && $_POST['monitor'] != "ICMP")
- $input_errors[] = "Invalid monitor chosen.";
+
+ if($POST['type'] == "server") {
+ if ($_POST['monitor'] != "TCP" && $_POST['monitor'] != "HTTP" && $_POST['monitor'] != "ICMP")
+ $input_errors[] = "Invalid monitor chosen.";
+ }
if (!$input_errors) {
$poolent = array();
OpenPOWER on IntegriCloud