mirror of https://github.com/wulabing/Xray_onekey
fix 403 forbidden while getting local ip
https://github.com/wulabing/Xray_onekey/issues/436pull/441/head
parent
99716ef575
commit
05b5e9a671
|
@ -257,8 +257,8 @@ function domain_check() {
|
|||
wg-quick down wgcf >/dev/null 2>&1
|
||||
print_ok "已关闭 wgcf-warp"
|
||||
fi
|
||||
local_ipv4=$(curl -s4m8 https://ip.gs)
|
||||
local_ipv6=$(curl -s6m8 https://ip.gs)
|
||||
local_ipv4=$(curl -s4m8 http://ip.gs)
|
||||
local_ipv6=$(curl -s6m8 http://ip.gs)
|
||||
if [[ -z ${local_ipv4} && -n ${local_ipv6} ]]; then
|
||||
# 纯IPv6 VPS,自动添加DNS64服务器以备acme.sh申请证书使用
|
||||
echo -e nameserver 2a01:4f8:c2c:123f::1 > /etc/resolv.conf
|
||||
|
|
Loading…
Reference in New Issue