mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-06-01 03:00:47 +00:00
Use $SERVER_WG_IPV4 and $SERVER_WG_IPV6 when suggesting the client IP
This commit is contained in:
parent
94de617fe6
commit
f80eca7de9
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user