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

[Bug]: Windows系统host文件被彻底绕过 #4452

Closed
2 tasks done
chenxuwenumd opened this issue Nov 27, 2023 · 4 comments
Closed
2 tasks done

[Bug]: Windows系统host文件被彻底绕过 #4452

chenxuwenumd opened this issue Nov 27, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@chenxuwenumd
Copy link

预期情况

Windows系统host文件应该是第一优先级,不该被绕过

实际情况

发现使用v2rayN时,不做任何设置就会自动绕过Windows系统host文件而完全靠外部来解释域名。这样对于使用host文件来屏蔽一下网站或者指向某个网站的机器比较不友好。

尝试了使用https://github.com/v2ray/v2ray-core/issues/1626教的方法,把DNS部分在config里注释掉,没有用,v2rayN一启动就改回来了。

能否在v2rayN里加上尊重Windows系统host文件的功能,或者允许修改config里DNS部分使得不使用v2rayN指定的外部DNS成为可能呢?

复现方法

1.在Windows系统host文件里随便屏蔽几个网站
2.使用v2rayN联网
3.发现被host文件屏蔽的网站也能访问了。

日志信息

N/A

额外信息

No response

我确认已更新至最新版本

我确认已查询历史issues

@chenxuwenumd chenxuwenumd added the bug Something isn't working label Nov 27, 2023
@chenxuwenumd
Copy link
Author

#3922 指出了一个类似的问题。当时有回复“dns配置下可以了”

问题在于目标的配置是什么呢?使用官版的办法把DNS注释掉是一个DNS配置的办法,但目前对v2rayN是无效的,v2rayN会把它改回来,有个合适的按钮吗?

@aaffjj
Copy link

aaffjj commented Nov 30, 2023

在路由规则里面设置一下绕过就行了

@chenxuwenumd
Copy link
Author

在路由规则里面设置一下绕过就行了

我也想设置,问题是官版的方法改了v2rayN就把它改回来,得有v2rayN允许的格式或方案才行。这里就是黑盒的地方。
能否指导一下如何具体为v2rayN做设置呢?谢谢!

@aaffjj
Copy link

aaffjj commented Nov 30, 2023

在路由规则里面设置一下绕过就行了

我也想设置,问题是官版的方法改了v2rayN就把它改回来了,得有v2rayN允许的格式或方案才行。这里就是黑盒的地方。能否指导一下具体如何为v2rayN做设置呢 ?谢谢!

在这里设置一下,绕过就行了
2023-11-30_232455

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants