mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-10-24 20:00:01 +00:00
~适配singbox 1.15版本内核改动
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user