summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-02-17 12:54:26 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-02-17 12:54:47 -0500
commit5bf773af036ecae256bcd0ee046f305f6960401b (patch)
treeab2d20e4100cdfc855cca9d4aee99f41c9ad86b4
parent57fd6bd43a3261dfc8f9132f31d40785f7a2114f (diff)
downloadpfsense-5bf773af036ecae256bcd0ee046f305f6960401b.zip
pfsense-5bf773af036ecae256bcd0ee046f305f6960401b.tar.gz
Fixed #5904
-rw-r--r--src/usr/local/www/vpn_openvpn_client.php3
-rw-r--r--src/usr/local/www/vpn_openvpn_server.php3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/usr/local/www/vpn_openvpn_client.php b/src/usr/local/www/vpn_openvpn_client.php
index 3cd9981..b431a19 100644
--- a/src/usr/local/www/vpn_openvpn_client.php
+++ b/src/usr/local/www/vpn_openvpn_client.php
@@ -496,7 +496,8 @@ if ($act=="new" || $act=="edit"):
'local_port',
'Local port',
'number',
- $pconfig['local_port']
+ $pconfig['local_port'],
+ ['min' => '0']
))->setHelp('Set this option if you would like to bind to a specific port. Leave this blank or enter 0 for a random dynamic port.');
$section->addInput(new Form_Input(
diff --git a/src/usr/local/www/vpn_openvpn_server.php b/src/usr/local/www/vpn_openvpn_server.php
index 28c458e..ef9f67d 100644
--- a/src/usr/local/www/vpn_openvpn_server.php
+++ b/src/usr/local/www/vpn_openvpn_server.php
@@ -686,7 +686,8 @@ if ($act=="new" || $act=="edit"):
'local_port',
'Local port',
'number',
- $pconfig['local_port']
+ $pconfig['local_port'],
+ ['min' => '0']
));
$section->addInput(new Form_Input(
OpenPOWER on IntegriCloud