-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Description
Verify steps
- 我已经在 Issue Tracker 中找过我要提出的问题 I have searched on the issue tracker for a related issue.
- 我已经使用公测版本测试过,问题依旧存在 I have tested using the test mod, and the issue still exists.
- 我已经仔细看过 常见问题 并无法自行解决问题
Description
scripts/starts/singbox_modify.sh 第271行:
[ "ipv6_redir" = 'ON' ] && ipv6_address='"fe80::e5c5:2469:d09b:609a/64",'存在两个问题:
1. 变量引用缺少 $ 前缀
"ipv6_redir" 应为 "$ipv6_redir"。当前写法是字符串字面量与 'ON' 比较,结果恒为 false,导致无论是否开启 IPv6 重定向,tun 入站都不会添加 IPv6 地址。
2. fe80:: 链路本地地址导致 sing-box 启动失败
fe80::/10 是链路本地地址,作用域限于单个链路,不可路由,不适用于 tun 接口。sing-box 启动时会报错。
建议修复
[ "$ipv6_redir" = 'ON' ] && ipv6_address='"fd00:face:b00c::1/126",'- 补上
$前缀 - 使用 ULA 私有地址
fd00:face:b00c::1/126,与 IPv4 侧的28.0.0.1/30对应,适合点对点隧道
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels