Skip to content

Commit

Permalink
Fixing issue #62
Browse files Browse the repository at this point in the history
  • Loading branch information
NidukaAkalanka authored Dec 21, 2022
1 parent 27af1c7 commit a72f3d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a72f3d4

Please sign in to comment.