|
@@ -49,7 +49,10 @@ wg genkey | tee sprivatekey | wg pubkey > spublickey
|
|
|
wg genkey | tee cprivatekey | wg pubkey > cpublickey
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+serverip=$(curl icanhazip.com)
|
|
|
+
|
|
|
+
|
|
|
|
|
|
echo "[Interface]
|
|
|
|
|
@@ -110,7 +113,7 @@ PostDown = start .\route\routes-down.bat
|
|
|
PublicKey = $(cat spublickey)
|
|
|
|
|
|
|
|
|
-Endpoint = srgb.xyz:9009
|
|
|
+Endpoint = $serverip:9009
|
|
|
|
|
|
|
|
|
AllowedIPs = 0.0.0.0/0, ::0/0
|