Skip to content

Commit c9a939e

Browse files
committed
优化
1 parent e2f8fcf commit c9a939e

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

app/src/main/java/io/nekohasekai/sagernet/fmt/ConfigBuilder.kt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,10 +557,14 @@ fun buildConfig(
557557
})
558558
}
559559

560-
// 主规则:其他所有流量走代理
561560
route.rules.add(Rule_DefaultOptions().apply {
562-
inbound = listOf(TAG_MIXED) // 添加入站条件
563-
outbound = TAG_PROXY // 将所有流量转发到代理
561+
inbound = listOf("tun-in")
562+
outbound = TAG_PROXY
563+
})
564+
565+
route.rules.add(Rule_DefaultOptions().apply {
566+
inbound = listOf(TAG_MIXED)
567+
outbound = TAG_PROXY
564568
})
565569
} else {
566570
// 应用用户规则

0 commit comments

Comments
 (0)