File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -189,8 +189,8 @@ download() {
189189
190190# get server ip
191191get_ip () {
192- export " $( _wget -4 -qO- https://cloudflare-dns.com /cdn-cgi/trace | grep ip=) " & > /dev/null
193- [[ -z $ip ]] && export " $( _wget -6 -qO- https://cloudflare-dns.com /cdn-cgi/trace | grep ip=) " & > /dev/null
192+ export " $( _wget -4 -qO- https://one.one.one.one /cdn-cgi/trace | grep ip=) " & > /dev/null
193+ [[ -z $ip ]] && export " $( _wget -6 -qO- https://one.one.one.one /cdn-cgi/trace | grep ip=) " & > /dev/null
194194}
195195
196196# check background tasks status
Original file line number Diff line number Diff line change @@ -125,8 +125,8 @@ get_uuid() {
125125
126126get_ip () {
127127 [[ $ip || $is_no_auto_tls || $is_gen ]] && return
128- export " $( _wget -4 -qO- https://cloudflare-dns.com /cdn-cgi/trace | grep ip=) " & > /dev/null
129- [[ ! $ip ]] && export " $( _wget -6 -qO- https://cloudflare-dns.com /cdn-cgi/trace | grep ip=) " & > /dev/null
128+ export " $( _wget -4 -qO- https://one.one.one.one /cdn-cgi/trace | grep ip=) " & > /dev/null
129+ [[ ! $ip ]] && export " $( _wget -6 -qO- https://one.one.one.one /cdn-cgi/trace | grep ip=) " & > /dev/null
130130 [[ ! $ip ]] && {
131131 err " 获取服务器 IP 失败.."
132132 }
@@ -1388,7 +1388,7 @@ get() {
13881388 # is_host_dns=$(ping $host $is_ip_type -c 1 -W 2 | head -1)
13891389 is_dns_type=" a"
13901390 [[ $( grep " :" <<< $ip ) ]] && is_dns_type=" aaaa"
1391- is_host_dns=$( _wget -qO- --header=" accept: application/dns-json" " https://cloudflare-dns.com /dns-query?name=$host &type=$is_dns_type " )
1391+ is_host_dns=$( _wget -qO- --header=" accept: application/dns-json" " https://one.one.one.one /dns-query?name=$host &type=$is_dns_type " )
13921392 ;;
13931393 log | logerr)
13941394 msg " \n 提醒: 按 $( _green Ctrl + C) 退出\n"
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33args=$@
4- is_sh_ver=v4.13
4+ is_sh_ver=v4.14
55
66. /etc/v2ray/sh/src/init.sh
You can’t perform that action at this time.
0 commit comments