From f4d353a7079f75a56857671bd9aad979aed659a4 Mon Sep 17 00:00:00 2001 From: Kar Date: Tue, 29 Apr 2025 12:13:25 +0000 Subject: [PATCH] Update wg_config.sh --- wg_config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wg_config.sh b/wg_config.sh index baf6c52..dd36ed4 100644 --- a/wg_config.sh +++ b/wg_config.sh @@ -33,7 +33,7 @@ function add_client() { PUBLIC_KEY=$(cat public) SERVER_PUBLIC_KEY=$(cat "$WG_DIR/self/public") - SERVER_IP=$(curl -s ifconfig.me) + SERVER_IP=$(curl -4 -s ifconfig.me) CLIENT_IP=$(get_next_ip) echo "[+] Creating config for $CLIENT_NAME ($CLIENT_IP)..."