summaryrefslogtreecommitdiffstats
path: root/usr/local/www/load_balancer_pool_edit.php
diff options
context:
space:
mode:
authorDarren Embry <dse@webonastick.com>2012-04-05 14:35:54 -0400
committerDarren Embry <dse@webonastick.com>2012-04-05 14:36:50 -0400
commit01ed452e3253f2883aed00b710d6c5e7c5420305 (patch)
treebd8f60638ea5ca4587d59787069c56eaed06ddd5 /usr/local/www/load_balancer_pool_edit.php
parent99f6b2a9a2e003304f5d197652ca0f1fe48de0f3 (diff)
downloadpfsense-01ed452e3253f2883aed00b710d6c5e7c5420305.zip
pfsense-01ed452e3253f2883aed00b710d6c5e7c5420305.tar.gz
Load Balancer: allow port aliases in Pools and Virtual Servers. (PEV-394754)
Diffstat (limited to 'usr/local/www/load_balancer_pool_edit.php')
-rwxr-xr-xusr/local/www/load_balancer_pool_edit.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr/local/www/load_balancer_pool_edit.php b/usr/local/www/load_balancer_pool_edit.php
index 81a548c..078b61a 100755
--- a/usr/local/www/load_balancer_pool_edit.php
+++ b/usr/local/www/load_balancer_pool_edit.php
@@ -85,8 +85,8 @@ if ($_POST) {
if (strpos($_POST['name'], " ") !== false)
$input_errors[] = gettext("You cannot use spaces in the 'name' field.");
- if (!is_port($_POST['port']))
- $input_errors[] = gettext("The port must be an integer between 1 and 65535.");
+ if (!is_portoralias($_POST['port']))
+ $input_errors[] = gettext("The port must be an integer between 1 and 65535, or a port alias.");
// May as well use is_port as we want a positive integer and such.
if (!empty($_POST['retry']) && !is_port($_POST['retry']))
@@ -209,7 +209,10 @@ function clearcombo(){
<td width="22%" valign="top" id="monitorport_text" class="vncellreq"><?=gettext("Port"); ?></td>
<td width="78%" class="vtable" colspan="2">
<input name="port" type="text" <?if(isset($pconfig['port'])) echo "value=\"{$pconfig['port']}\"";?> size="16" maxlength="16"><br>
- <div id="monitorport_desc"><?=gettext("This is the port your servers are listening on."); ?></div>
+ <div id="monitorport_desc">
+ <?=gettext("This is the port your servers are listening on."); ?><br />
+ <?=gettext("You may also specify a port alias listed in Firewall -&gt; Interfaces here."); ?>
+ </div>
</td>
</tr>
<tr align="left">
OpenPOWER on IntegriCloud