From a72f3d4a5d849e15b8a3437d59c14fff256dc87f Mon Sep 17 00:00:00 2001 From: Niduka Akalanka <97357554+NidukaAkalanka@users.noreply.github.com> Date: Wed, 21 Dec 2022 10:08:58 +0530 Subject: [PATCH] Fixing issue https://github.com/NidukaAkalanka/x-ui-english/issues/62 --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 4a75718..eb917d3 100644 --- a/install.sh +++ b/install.sh @@ -81,12 +81,12 @@ check_status(){ WgcfIPv6Status=$(curl -s6m8 https://www.cloudflare.com/cdn-cgi/trace -k | grep warp | cut -d= -f2) if [[ $WgcfIPv4Status =~ "on"|"plus" ]] || [[ $WgcfIPv6Status =~ "on"|"plus" ]]; then wg-quick down wgcf >/dev/null 2>&1 - v6=$(curl -s6m8 https://ip.gs -k) - v4=$(curl -s4m8 https://ip.gs -k) + v6=$(curl -s6m8 ip.gs -k) + v4=$(curl -s4m8 ip.gs -k) wg-quick up wgcf >/dev/null 2>&1 else - v6=$(curl -s6m8 https://ip.gs -k) - v4=$(curl -s4m8 https://ip.gs -k) + v6=$(curl -s6m8 ip.gs -k) + v4=$(curl -s4m8 ip.gs -k) if [[ -z $v4 && -n $v6 ]]; then yellow "IPv6 only is detected. So the DNS64 parsing server has been added automatically" echo -e "nameserver 2606:4700:4700::1111" > /etc/resolv.conf