diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-02-17 12:54:26 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-02-17 12:54:47 -0500 |
commit | 5bf773af036ecae256bcd0ee046f305f6960401b (patch) | |
tree | ab2d20e4100cdfc855cca9d4aee99f41c9ad86b4 | |
parent | 57fd6bd43a3261dfc8f9132f31d40785f7a2114f (diff) | |
download | pfsense-5bf773af036ecae256bcd0ee046f305f6960401b.zip pfsense-5bf773af036ecae256bcd0ee046f305f6960401b.tar.gz |
Fixed #5904
-rw-r--r-- | src/usr/local/www/vpn_openvpn_client.php | 3 | ||||
-rw-r--r-- | src/usr/local/www/vpn_openvpn_server.php | 3 |
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( |