From c71fcce8700e0d3a357842b41c86eee04f8f02d8 Mon Sep 17 00:00:00 2001 From: juewuy Date: Sat, 18 Jul 2026 20:16:51 +0800 Subject: [PATCH] =?UTF-8?q?~=E7=BB=99=E6=B2=A1=E6=9C=89=20CIDR=20=E5=89=8D?= =?UTF-8?q?=E7=BC=80=E7=9A=84=E8=A3=B8=20IP=20=E8=A1=A5=20/32?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/libs/sb_endpoints.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/libs/sb_endpoints.sh b/scripts/libs/sb_endpoints.sh index 39ce450c..55d38301 100644 --- a/scripts/libs/sb_endpoints.sh +++ b/scripts/libs/sb_endpoints.sh @@ -4,6 +4,8 @@ [ "$ts_service" = ON ] && ! grep -q '"tailscale"' "$CRASHDIR"/jsons/endpoints.json 2>/dev/null && { [ "$ts_subnet" = true ] && { . "$CRASHDIR"/starts/fw_getlanip.sh && getlanip + # 给没有 CIDR 前缀的裸 IP 补 /32 + host_ipv4=$(echo $host_ipv4 | awk '{for(i=1;i<=NF;i++){if($i !~ /\//){$i=$i"/32"}} print}') advertise_routes=$(echo "$host_ipv4"|sed 's/[[:space:]]\+/", "/g; s/^/"/; s/$/"/') } [ -z "$ts_exit_node" ] && ts_exit_node=false