diff --git a/wg_init.sh b/wg_init.sh index e9dcbb9..dde790b 100644 --- a/wg_init.sh +++ b/wg_init.sh @@ -47,7 +47,7 @@ systemctl enable wg-quick@wg0 systemctl start wg-quick@wg0 # Detect public IP -PUBLIC_IP=$(curl -s ifconfig.me) +PUBLIC_IP=$(curl -4 -s ifconfig.me) # Setup Mobile Peer MOBILE_DIR="$WG_DIR/mobile_1"