~优化常用端口过滤功能输入逻辑

~修复部分设备singbox内核tun设备因ipv6地址导致的权限不足问题
This commit is contained in:
juewuy
2025-01-01 15:55:35 +08:00
parent 8d0c472787
commit a8ec76fb93
2 changed files with 9 additions and 3 deletions

View File

@@ -767,6 +767,7 @@ EOF
}
EOF
if [ "$redir_mod" = "混合模式" -o "$redir_mod" = "Tun模式" ]; then
[ "ipv6_redir" = '已开启' ] && ipv6_address='"fdfe:dcba:9876::1/126",'
cat >>"$TMPDIR"/jsons/tun.json <<EOF
{
"inbounds": [
@@ -775,8 +776,8 @@ EOF
"tag": "tun-in",
"interface_name": "utun",
"address": [
"172.72.0.1/30",
"fdfe:dcba:9876::1/126"
$ipv6_address
"172.72.0.1/30"
],
"auto_route": false,
"stack": "system",