From 1287313e3cc140b74e6c31789faa08cad3d02140 Mon Sep 17 00:00:00 2001 From: TheyCallMeSecond <73380906+TheyCallMeSecond@users.noreply.github.com> Date: Sun, 21 Jan 2024 22:46:44 +0330 Subject: [PATCH] Update Install.sh --- Install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Install.sh b/Install.sh index 22dfd17..43a1480 100644 --- a/Install.sh +++ b/Install.sh @@ -868,7 +868,7 @@ function set_target_server() { function get_local_ip() { local local_ip_v4 local local_ip_v6 - local_ip_v4=$(curl -s4 https://api.myip.com | grep -o '"ip":"[^"]*' | awk -F ':"' '{print $2}') + local_ip_v4=$(wget -qO- --no-check-certificate --user-agent=Mozilla --tries=2 --timeout=1 https://v4.ident.me) if [[ -n "$local_ip_v4" ]]; then ip_v4="$local_ip_v4" else @@ -877,7 +877,7 @@ function get_local_ip() { ip_v4="$local_ip_v4" fi fi - local_ip_v6=$(curl -s6 https://api.myip.com | grep -o '"ip":"[^"]*' | awk -F ':"' '{print $2}') + local_ip_v6=$(wget -qO- --no-check-certificate --user-agent=Mozilla --tries=2 --timeout=1 https://v6.ident.me) if [[ -n "$local_ip_v6" ]]; then ip_v6="$local_ip_v6" else