~Tailscale通告网段改为使用透明路由ipv4网段

~bug fix
This commit is contained in:
juewuy
2026-01-08 17:31:17 +08:00
parent f72192e801
commit d98f6ccef5
4 changed files with 14 additions and 6 deletions

View File

@@ -2,7 +2,10 @@
# Copyright (C) Juewuy
[ "$ts_service" = ON ] && {
[ "$ts_subnet" = true ] && advertise_routes='"10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"'
[ "$ts_subnet" = true ] && {
. "$CRASHDIR"/starts/fw_getlanip.sh && getlanip
advertise_routes=$(echo "$host_ipv4"|sed 's/[[:space:]]\+/", "/g; s/^/"/; s/$/"/')
}
[ -z "$ts_exit_node" ] && ts_exit_node=false
[ -z "$ts_hostname" ] && ts_hostname='ShellCrash'
cat >"$TMPDIR"/jsons/tailscale.json <<EOF