aboutsummaryrefslogtreecommitdiff
path: root/wireguard-install.sh
diff options
context:
space:
mode:
authorStanislas <angristan@pm.me>2019-05-17 10:43:02 +0200
committerGitHub <noreply@github.com>2019-05-17 10:43:02 +0200
commitb70cba9f7335fcbb9b19779540f448571a4223a8 (patch)
treeec8dd85e0a8707cf38f9b79a67f5c8bca9ae9245 /wireguard-install.sh
parent21d1950c00d84c56f96599a3f74ec3255e1a0d98 (diff)
Fix client IPs
Should fix #14
Diffstat (limited to 'wireguard-install.sh')
-rw-r--r--wireguard-install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/wireguard-install.sh b/wireguard-install.sh
index 23a21ec..c67ebce 100644
--- a/wireguard-install.sh
+++ b/wireguard-install.sh
@@ -112,7 +112,7 @@ AllowedIPs = $CLIENT_WG_IPV4/32,$CLIENT_WG_IPV6/128" >> "/etc/wireguard/$SERVER_
# Create client file with interface
echo "[Interface]
PrivateKey = $CLIENT_PRIV_KEY
-Address = $CLIENT_IPV4/24,$CLIENT_IPV6/64
+Address = $CLIENT_WG_IPV4/24,$CLIENT_WG_IPV4/64
DNS = $CLIENT_DNS_1,$CLIENT_DNS_2" > "$HOME/$SERVER_WG_NIC-client.conf"
# Add the server as a peer to the client