1
1
mirror of https://github.com/angristan/wireguard-install.git synced 2024-06-05 04:50:49 +00:00

add 4th byte of IP to regex condition

This commit is contained in:
BlackcatRs 2021-03-25 20:29:50 +01:00
parent e987ccd427
commit 6ced764318

View File

@ -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