From 99719f570a03b14a1141aea4923e98bb21b26b8d Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 8 Aug 2005 00:26:50 +0000 Subject: Retrofit protocol box --- usr/local/www/load_balancer_pool_edit.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'usr/local/www/load_balancer_pool_edit.php') 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(); -- cgit v1.1