change to ip.sb not https version and it also work

pull/439/head
xooxoodark 2022-12-17 18:01:36 +08:00 committed by GitHub
parent fd6b7b7183
commit 781353a55c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -242,8 +242,8 @@ function domain_check() {
wg-quick down wgcf >/dev/null 2>&1 wg-quick down wgcf >/dev/null 2>&1
print_ok "已关闭 wgcf-warp" print_ok "已关闭 wgcf-warp"
fi fi
local_ipv4=$(curl -s4m8 https://ifconfig.co/) local_ipv4=$(curl -4 ip.sb)
local_ipv6=$(curl -s6m8 https://ifconfig.co/) local_ipv6=$(curl -6 ip.sb)
if [[ -z ${local_ipv4} && -n ${local_ipv6} ]]; then if [[ -z ${local_ipv4} && -n ${local_ipv6} ]]; then
# 纯IPv6 VPS自动添加DNS64服务器以备acme.sh申请证书使用 # 纯IPv6 VPS自动添加DNS64服务器以备acme.sh申请证书使用
echo -e nameserver 2a01:4f8:c2c:123f::1 > /etc/resolv.conf echo -e nameserver 2a01:4f8:c2c:123f::1 > /etc/resolv.conf