From 19b102161253ac33bdf26010e6e110d6e71cc06c Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 1 Nov 2013 10:43:40 -0400 Subject: Prevent a Fall Back Pool from being selected when the DNS protocol is in use. If one is present in the config, ignore it. Fixes #3300 --- usr/local/www/load_balancer_virtual_server_edit.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/local/www/load_balancer_virtual_server_edit.php b/usr/local/www/load_balancer_virtual_server_edit.php index 32d8cdd..4d7eb6a 100755 --- a/usr/local/www/load_balancer_virtual_server_edit.php +++ b/usr/local/www/load_balancer_virtual_server_edit.php @@ -96,6 +96,9 @@ if ($_POST) { else if (is_subnetv4($_POST['ipaddr']) && subnet_size($_POST['ipaddr']) > 64) $input_errors[] = sprintf(gettext("%s is a subnet containing more than 64 IP addresses."), $_POST['ipaddr']); + if ((strtolower($_POST['relay_protocol']) == "dns") && !empty($_POST['sitedown'])) + $input_errors[] = gettext("You cannot select a Fall Back Pool when using the DNS relay protocol."); + if (!$input_errors) { $vsent = array(); if(isset($id) && $a_vs[$id]) @@ -232,7 +235,8 @@ include("head.inc"); } ?> -
+
+
-- cgit v1.1