Conversation
Fangliding
approved these changes
Apr 19, 2026
Member
|
|
|
It's not very clear to me what happens when Xray core itself initiates a connection, for instance, its DNS module. How will AndroidProcessFinder recognize it? Will it be UID -1 or Xray core UID or something else? |
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.
启用
IpIfNonMatch时,第二遍尝试匹配规则时会把routing.Context包装成ResolvableContext。ResolvableContext会把 sniff 出来的域名解析成 IP,这导致 FindProcess 拿到的 IP 和 TUN 入站拿到的 IP 不一样。本 PR 会尝试把 ctx 转成
*dns.ResolvableContext并调用原始 context 的GetTargetIPs