~适配singbox 1.15版本内核改动

This commit is contained in:
juewuy
2026-10-24 13:55:05 +08:00
parent 5599b05671
commit 783453aabf
+4 -3
View File
@@ -338,7 +338,8 @@ EOF
. "$CRASHDIR"/libs/sb_inbounds.sh . "$CRASHDIR"/libs/sb_inbounds.sh
} }
if [ "$redir_mod" = "Mix" ] || [ "$redir_mod" = "Tun" ]; then if [ "$redir_mod" = "Mix" ] || [ "$redir_mod" = "Tun" ]; then
[ "$ipv6_redir" = 'ON' ] && ipv6_address='"fd00:face:b00c::1/126",' [ "$ipv6_redir" = 'ON' ] && [ -n "$(ip -6 rule show)" ] && ipv6_address='"fd00:face:b00c::1/126",'
[ "$(printf '%s' "$core_v" | cut -d. -f2)" -le 14 ] && stack='"stack": "system",'
cat >>"$TMPDIR"/jsons/tun.json <<EOF cat >>"$TMPDIR"/jsons/tun.json <<EOF
{ {
"inbounds": [ "inbounds": [
@@ -350,8 +351,8 @@ EOF
$ipv6_address $ipv6_address
"198.18.0.1/15" "198.18.0.1/15"
], ],
"auto_route": false, $stack
"stack": "system" "auto_route": false
} }
] ]
} }