From f4af9c168795c77522629b157c2990d6ba4b325b Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Fri, 20 Feb 2026 04:32:08 +0000 Subject: [PATCH] Modify the IP API URL to ip.cloudflare.now.cc --- docker_init.sh | 2 +- sing-box.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker_init.sh b/docker_init.sh index 880dc8c..6d7699e 100644 --- a/docker_init.sh +++ b/docker_init.sh @@ -34,7 +34,7 @@ check_latest_sing-box() { # 获取最终版本号 local VERSION=$(wget --no-check-certificate --tries=2 --timeout=3 -qO- https://api.github.com/repos/SagerNet/sing-box/releases | awk -F '["v]' -v var="tag_name.*$FORCE_VERSION" '$0 ~ var {print $5; exit}') - VERSION=${VERSION:-'1.13.0-rc.3'} + VERSION=${VERSION:-'1.13.0-rc.4'} echo "$VERSION" } diff --git a/sing-box.sh b/sing-box.sh index 9f7f883..64b4c95 100644 --- a/sing-box.sh +++ b/sing-box.sh @@ -20,7 +20,7 @@ NODE_TAG=("xtls-reality" "hysteria2" "tuic" "ShadowTLS" "shadowsocks" "trojan" " CONSECUTIVE_PORTS=${#PROTOCOL_LIST[@]} CDN_DOMAIN=("skk.moe" "ip.sb" "time.is" "cfip.xxxxxxxx.tk" "bestcf.top" "cdn.2020111.xyz" "xn--b6gac.eu.org" "cf.090227.xyz") SUBSCRIBE_TEMPLATE="https://raw.githubusercontent.com/fscarmen/client_template/main" -DEFAULT_NEWEST_VERSION='1.13.0-rc.3' +DEFAULT_NEWEST_VERSION='1.13.0-rc.4' export DEBIAN_FRONTEND=noninteractive @@ -1208,13 +1208,13 @@ check_system_ip() { [ -n "$DEFAULT_LOCAL_IP6" ] && local BIND_ADDRESS6="--bind-address=$DEFAULT_LOCAL_IP6" fi - local IP4_JSON=$(wget $BIND_ADDRESS4 -4 -qO- --no-check-certificate --tries=2 --timeout=2 https://ip.cloudflare.nyc.mn${IS_CHINESE}) && + local IP4_JSON=$(wget $BIND_ADDRESS4 -4 -qO- --no-check-certificate --tries=2 --timeout=2 https://ip.cloudflare.now.cc${IS_CHINESE}) && WAN4=$(awk -F '"' '/"ip"/{print $4}' <<< "$IP4_JSON") && COUNTRY4=$(awk -F '"' '/"country"/{print $4}' <<< "$IP4_JSON") && EMOJI4=$(awk -F '"' '/"emoji"/{print $4}' <<< "$IP4_JSON") && ASNORG4=$(awk -F '"' '/"isp"/{print $4}' <<< "$IP4_JSON") - local IP6_JSON=$(wget $BIND_ADDRESS6 -6 -qO- --no-check-certificate --tries=2 --timeout=2 https://ip.cloudflare.nyc.mn${IS_CHINESE}) && + local IP6_JSON=$(wget $BIND_ADDRESS6 -6 -qO- --no-check-certificate --tries=2 --timeout=2 https://ip.cloudflare.now.cc${IS_CHINESE}) && WAN6=$(awk -F '"' '/"ip"/{print $4}' <<< "$IP6_JSON") && COUNTRY6=$(awk -F '"' '/"country"/{print $4}' <<< "$IP6_JSON") && EMOJI6=$(awk -F '"' '/"emoji"/{print $4}' <<< "$IP6_JSON") &&