Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

英文文档对"IPOnDemand"的解释有误. #317

Open
RealXuChe opened this issue Mar 6, 2020 · 0 comments
Open

英文文档对"IPOnDemand"的解释有误. #317

RealXuChe opened this issue Mar 6, 2020 · 0 comments

Comments

@RealXuChe
Copy link

中文文档是"当匹配时碰到任何基于 IP 的规则,将域名立即解析为 IP 进行匹配",而英文文档是"As long as there is a IP-based rule, V2Ray resolves the domain into IP immediately.", 即:"只要路由规则里面存在IP路由匹配,所有请求的域名都先进行DNS解析"
如图为两种表达代表的规则匹配顺序:
图片

具体来说,v2ray的工作方式是:遍历每一条规则进行匹配,如果在匹配时发现有基于ip的规则,才对待匹配的域名进行解析.
而英文文档表示的意思是:先扫描路由数组有没有IP规则,有则解析后再匹配,没有则直接匹配

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant