diff options
-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( |