Merged
Conversation
Contributor
Author
|
diff: DHR60/v2rayN@refactor_config_gen...tun_protect 删除了启用额外监听端口 尽可能将 protect 这部分分离而不是整合到现有代码中,以便 xray tun 完善后将这部分删除 |
3314b4a to
f7a1e43
Compare
2dust
reviewed
Feb 25, 2026
2dust
reviewed
Feb 25, 2026
| public bool IsTunEnabled { get; init; } = false; | ||
| public HashSet<string> ProtectDomainList { get; init; } = new(); | ||
| public int ProtectSocksPort { get; init; } = 0; | ||
| // -> tun inbound --(if routing proxy)--> relay outbound |
Owner
There was a problem hiding this comment.
逻辑没有问题,但是不知道实际使用能解决多少问题?
如果开了tun,并且把策略组等都打开,这个配置文件看的头大了
Contributor
Author
There was a problem hiding this comment.
dial 到实际网口出口只由 sing-box 负责
可能就只能解决进程嗅探失败导致回环还有 DNS 回环问题
其他的像是什么规则集下载失败,系统原因什么的应该解决不了
所以大概最多最多也就解决三成用户的 TUN 不可用
Contributor
Author
There was a problem hiding this comment.
这么说可能 xray 的 ech 还有点问题,ech config 是 xray 自己 dial 获取的
不管了,xray ech 这部分就忽略吧
Contributor
Author
There was a problem hiding this comment.
还有 xray 的 Wireguard 应该也有问题,Wireguard 不允许传递域名,所以 xray 会自行将其解析为 IP。
DNS Protect 不好写,这个也不管了
2dust
reviewed
Feb 25, 2026
Owner
|
测试了以下都通过:
分片等合并后面的 PR 再试 |
Contributor
Author
|
你好,这个管用,之前的所有的版本都会莫名其妙的网络突然不行,开关就可以,有的时候整个软件都使用不了,用了这个版本,我就没有出现这个问题过,开的tun 模式,使用了singlebox |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

基于 #8768
彻底解决因双核心回环导致的 TUN 不可用问题
sing-box 开启一个直连出站的 protect 入站,xray 将其作为前置代理,解决因 DNS 以及进程嗅探失败等原因导致的 TUN 不可用