summaryrefslogtreecommitdiffstats
path: root/usr/local/www/load_balancer_virtual_server_edit.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-11-01 10:43:40 -0400
committerjim-p <jimp@pfsense.org>2013-11-01 10:43:40 -0400
commitc5d4d97bab489c5884331e0f36930a4e7aaa78c8 (patch)
treec54936ca209a4b5962830e7e26128b35bb4b7f93 /usr/local/www/load_balancer_virtual_server_edit.php
parentadd913b1437bf56b61a4ae8739e7a426b8267aff (diff)
downloadpfsense-c5d4d97bab489c5884331e0f36930a4e7aaa78c8.zip
pfsense-c5d4d97bab489c5884331e0f36930a4e7aaa78c8.tar.gz
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
Diffstat (limited to 'usr/local/www/load_balancer_virtual_server_edit.php')
-rwxr-xr-xusr/local/www/load_balancer_virtual_server_edit.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/load_balancer_virtual_server_edit.php b/usr/local/www/load_balancer_virtual_server_edit.php
index 2f66c96..db7a49f 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");
}
?>
</select>
- <br><b><?=gettext("NOTE:"); ?></b> <?=gettext("This is the server that clients will be redirected to if *ALL* servers in the pool are offline."); ?>
+ <br><?=gettext("The server pool to which clients will be redirected if *ALL* servers in the Virtual Server Pool are offline."); ?>
+ <br><?=gettext("This option is NOT compatible with the DNS relay protocol."); ?>
<?php endif; ?>
</td>
</tr>
OpenPOWER on IntegriCloud