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

V2rayN无法正常工作,主要是百度网站无法走直连 #12

Closed
timeneverdie opened this issue Feb 12, 2020 · 4 comments
Closed

Comments

@timeneverdie
Copy link

timeneverdie commented Feb 12, 2020

配置方法:
去ibugone网站生成并下载pac.txt,手动覆盖到V2rayN的根目录,在GUI里重启V2rayN服务。V2rayN设置为启用PAC模式,并未使用软件自带更新PAC功能。

Bug表现:
生成PAC时候,如果勾选4.1.9兼容模式,则全部走代理服务器;如果不勾选4.1.9兼容模式,则全部走直连,无法通过PAC实现分流。

更新1:
经过测试,发现PAC在大部分网站是正常工作的,唯独百度不行,因为一开始以百度作为判断依据,所以出现了偏差。在其他大陆网站都直连的情况下,唯独百度还是走代理,实在是奇怪。怀疑是百度在日本有业务,Google的DNS便将我这个日本IP优先连入百度。

更新2:
更换美国节点后,百度搜索”IP“依然识别为美国,而其他大陆网站识别正常,都是直连。

@timeneverdie timeneverdie changed the title V2rayN无法正常工作 V2rayN无法正常工作,主要是百度网站无法走直连 Feb 12, 2020
@iBug
Copy link
Owner

iBug commented Feb 12, 2020

估计是 DNS 问题,我这边可能管不了,和 #8 一起处理吧。

@iBug iBug closed this as completed Feb 12, 2020
@timeneverdie
Copy link
Author

估计是 DNS 问题,我这边可能管不了,和 #8 一起处理吧。

我刚刚在v2rayN的设置里,找到”Core:路由设置“,然后点开”预设规则“,设置为”绕过局域网和大陆地址“,就一切正常了(代理模式设置为PAC模式),这是什么原理?是不是这个选项的优先级比pac.txt还高?使用内建规则所以无视pac.txt文件?

@iBug
Copy link
Owner

iBug commented Feb 12, 2020

据我了解,v2rayN 是两级分流。Core 决定流量是否经过梯子,而 PAC 只是决定流量是否经过 Core。

2dust/v2rayN#83 (comment)

@iBug
Copy link
Owner

iBug commented Feb 12, 2020

另外 v2rayN 的 PAC 格式似乎不太一样,如果你能提供一个 v2 的 PAC 文件做参考我或许可以看看适配一下

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

2 participants