mirror of
https://github.com/angristan/wireguard-install.git
synced 2025-04-05 03:43:30 +03:00
add 4th byte of IP to regex condition
This commit is contained in:
parent
e987ccd427
commit
6ced764318
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ function installQuestions() {
|
|||
read -rp "WireGuard interface name: " -e -i wg0 SERVER_WG_NIC
|
||||
done
|
||||
|
||||
until [[ ${SERVER_WG_IPV4} =~ ^([0-9]{1,3}\.){3} ]]; do
|
||||
until [[ ${SERVER_WG_IPV4} =~ ^[0-9]{1,3}(\.[0-9]{1,3}){3} ]]; do
|
||||
read -rp "Server's WireGuard IPv4: " -e -i 10.66.66.1 SERVER_WG_IPV4
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue