aboutsummaryrefslogtreecommitdiff
path: root/wireguard-install.sh
diff options
context:
space:
mode:
authorangristan <angristan@pm.me>2019-05-23 23:44:05 +0200
committerangristan <angristan@pm.me>2019-05-23 23:44:05 +0200
commit8cb8b130d1da045b7765b96f017f2277c1c1ca70 (patch)
tree194a956e1d65dc0d489044c921d5027b8943746e /wireguard-install.sh
parentbc18f1dd26ab1541d69007d623b7c6445bb355ad (diff)
Fix endpoint port
Fix #18
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 3429658..c2bae10 100644
--- a/wireguard-install.sh
+++ b/wireguard-install.sh
@@ -118,7 +118,7 @@ DNS = $CLIENT_DNS_1,$CLIENT_DNS_2" > "$HOME/$SERVER_WG_NIC-client.conf"
# Add the server as a peer to the client
echo "[Peer]
PublicKey = $SERVER_PUB_KEY
-Endpoint = $SERVER_PUB_IP:1194
+Endpoint = $SERVER_PUB_IP:$SERVER_PORT
AllowedIPs = 0.0.0.0/0,::/0" >> "$HOME/$SERVER_WG_NIC-client.conf"
# Enable routing on the server