迁移指南
1.10.0
TUN 地址字段已合并
inet4_address
和 inet6_address
已合并为 address
,
inet4_route_address
和 inet6_route_address
已合并为 route_address
,
inet4_route_exclude_address
和 inet6_route_exclude_address
已合并为 route_exclude_address
。
旧字段已废弃,且将在 sing-box 1.11.0 中移除。
"参考"
- 弃用的
- 新的
{
"inbounds": [
{
"type": "tun",
"inet4_address": "172.19.0.1/30",
"inet6_address": "fdfe:dcba:9876::1/126",
"inet4_route_address": [
"0.0.0.0/1",
"128.0.0.0/1"
],
"inet6_route_address": [
"::/1",
"8000::/1"
],
"inet4_route_exclude_address": [
"192.168.0.0/16"
],
"inet6_route_exclude_address": [
"fc00::/7"
]
}
]
}
{
"inbounds": [
{
"type": "tun",
"address": [
"172.19.0.1/30",
"fdfe:dcba:9876::1/126"
],
"route_address": [
"0.0.0.0/1",
"128.0.0.0/1",
"::/1",
"8000::/1"
],
"route_exclude_address": [
"192.168.0.0/16",
"fc00::/7"
]
}
]
}
1.9.0
domain_suffix
行为更新
由于历史原因,sing-box 的 domain_suffix
规则匹配字面前缀,而不与其他项目相同。
sing-box 1.9.0 修改了 domain_suffix
的行为:如果规则值以 .
为前缀则行为不变,否则改为匹配 (domain|.+\.domain)
。
对 Windows 上 process_path
格式的更新
sing-box 的 process_path
规则继承自Clash,
原始代码使用本地系统的路径格式(例如 \Device\HarddiskVolume1\folder\program.exe
),
但是当设备有多个硬盘时,该 HarddiskVolume 系列号并不稳定。
sing-box 1.9.0 使 QueryFullProcessImageNameW 输出 Win32 路径(如 C:\folder\program.exe
),
这将会破坏现有的 Windows process_path
用例。