Fix IPv6 interface rule without auto route

This commit is contained in:
世界
2026-10-23 19:57:03 +08:00
parent 42cae14c63
commit 18aa2cdfe7
5 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ func NewInbound(ctx context.Context, router adapter.Router, logger log.ContextLo
}
tableIndex := options.IPRoute2TableIndex
if tableIndex == 0 {
if tableIndex == 0 && options.AutoRoute {
tableIndex = tun.DefaultIPRoute2TableIndex
}
ruleIndex := options.IPRoute2RuleIndex