summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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