diff --git a/wireguard-install.sh b/wireguard-install.sh index ac0ba2b..04826b3 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -27,11 +27,9 @@ function addClient() { exit 1 fi - CLIENT_WG_IPV4="10.66.66.2" - read -rp "Client's WireGuard IPv4 " -e -i "$CLIENT_WG_IPV4" CLIENT_WG_IPV4 + read -rp "Client's WireGuard IPv4 " -e -i "${SERVER_WG_IPV4: : -1}2" CLIENT_WG_IPV4 - CLIENT_WG_IPV6="fd42:42:42::2" - read -rp "Client's WireGuard IPv6 " -e -i "$CLIENT_WG_IPV6" CLIENT_WG_IPV6 + read -rp "Client's WireGuard IPv6 " -e -i "${SERVER_WG_IPV6: : -1}2" CLIENT_WG_IPV6 # Adguard DNS by default CLIENT_DNS_1="176.103.130.130"