mirror of
https://github.com/hwdsl2/openvpn-install.git
synced 2024-07-07 12:12:25 +02:00
Cleanup
This commit is contained in:
parent
9c9ecae84e
commit
77b87f41b2
@ -298,7 +298,7 @@ select_protocol() {
|
|||||||
select_port() {
|
select_port() {
|
||||||
if [ "$auto" = 0 ]; then
|
if [ "$auto" = 0 ]; then
|
||||||
echo
|
echo
|
||||||
echo "What port should OpenVPN listen to?"
|
echo "Which port should OpenVPN listen to?"
|
||||||
read -rp "Port [1194]: " port
|
read -rp "Port [1194]: " port
|
||||||
until [[ -z "$port" || "$port" =~ ^[0-9]+$ && "$port" -le 65535 ]]; do
|
until [[ -z "$port" || "$port" =~ ^[0-9]+$ && "$port" -le 65535 ]]; do
|
||||||
echo "$port: invalid port."
|
echo "$port: invalid port."
|
||||||
|
Loading…
Reference in New Issue
Block a user