Commit 88aa4ac 1 parent 8eb73d4 commit 88aa4ac Copy full SHA for 88aa4ac
File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -189,8 +189,8 @@ download() {
189
189
190
190
# get server ip
191
191
get_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
194
194
}
195
195
196
196
# check background tasks status
Original file line number Diff line number Diff line change @@ -125,8 +125,8 @@ get_uuid() {
125
125
126
126
get_ip () {
127
127
[[ $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
130
130
[[ ! $ip ]] && {
131
131
err " 获取服务器 IP 失败.."
132
132
}
@@ -1383,7 +1383,7 @@ get() {
1383
1383
# is_host_dns=$(ping $host $is_ip_type -c 1 -W 2 | head -1)
1384
1384
is_dns_type=" a"
1385
1385
[[ $( grep " :" <<< $ip ) ]] && is_dns_type=" aaaa"
1386
- is_host_dns=$( _wget -qO- --header=" accept: application/dns-json" " https://cloudflare-dns.com /dns-query?name=$host &type=$is_dns_type " )
1386
+ is_host_dns=$( _wget -qO- --header=" accept: application/dns-json" " https://one.one.one.one /dns-query?name=$host &type=$is_dns_type " )
1387
1387
;;
1388
1388
log | logerr)
1389
1389
msg " \n 提醒: 按 $( _green Ctrl + C) 退出\n"
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
args=$@
4
- is_sh_ver=v1.14
4
+ is_sh_ver=v1.15
5
5
6
6
. /etc/xray/sh/src/init.sh
You can’t perform that action at this time.
0 commit comments