From adedc76777b0ac146abfd77f824369488f71005a Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 20 Nov 2009 17:16:43 -0500 Subject: Allow specification of multiple ports seperated by a , --- config/haproxy/haproxy_backends_edit.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'config/haproxy/haproxy_backends_edit.php') diff --git a/config/haproxy/haproxy_backends_edit.php b/config/haproxy/haproxy_backends_edit.php index 61915a70..fe92c5ed 100755 --- a/config/haproxy/haproxy_backends_edit.php +++ b/config/haproxy/haproxy_backends_edit.php @@ -120,8 +120,10 @@ if ($_POST) { if (!is_numeric($_POST['max_connections'])) $input_errors[] = "The field 'Max connections' value is not a number."; - if (!is_numeric($_POST['port'])) - $input_errors[] = "The field 'Port' value is not a number."; + $ports = $_POST['port']; + foreach($ports as $port) + if ($port && !is_numeric($port)) + $input_errors[] = "The field 'Port' value is not a number."; if (!is_numeric($_POST['client_timeout'])) $input_errors[] = "The field 'Client timeout' value is not a number."; @@ -498,7 +500,7 @@ set by the 'retries' parameter (2). Port size="10" maxlength="10"> -
the port to listen to
+
The port to listen to. To specify multiple ports, separate with a comma (,). EXAMPLE: 80,443
-- cgit v1.2.3