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

请问插件的system or direct如何生效? #65

Open
XYjourney opened this issue Mar 28, 2018 · 5 comments
Open

请问插件的system or direct如何生效? #65

XYjourney opened this issue Mar 28, 2018 · 5 comments

Comments

@XYjourney
Copy link

我选择system选项,在浏览器配置好host后,在命令行ping相应的域名,并不能生效

@Riant
Copy link
Owner

Riant commented Apr 3, 2018

插件是基于浏览器的代理接口的,不是去修改系统 hosts 文件,所以,和系统基本没有关系,所以命令行当然是 ping 不到的哈。

Default 配置的 System/Direct 是指当您的访问没有匹配上您的配置时,是走系统代理配置,还是直接连接。

@stevobm
Copy link

stevobm commented Apr 26, 2018

我这边也没有生效,同问。
比如配置了 127.0.0.1 www.baidu.com,选中绿色并勾选enable,仍旧可以访问。
环境:macOS下Chrome65版本

@Riant
Copy link
Owner

Riant commented May 2, 2018

@stevobm 请使用一个能够正确响应的代理服务来配置,而不是配置一个无法访问/解析的代理服务来测试插件配置是否生效。

因为貌似浏览器会在目标代理未能正常响应的情况下忽略代理配置从未尽量保证访问目的达成,这个暂时未能找到相关文档说明,但测试下来确实如此。

@stevobm
Copy link

stevobm commented May 2, 2018

上面只是个例子,实际情况是,即便配置是能用的代理,也不生效。我查到新版本的Chrome好像是禁止插件rewrite网络请求了,导致这类模拟hosts的插件现在都用不了了,是吗?@Riant

@Riant
Copy link
Owner

Riant commented Dec 25, 2018

@stevobm 这类代理插件走的是浏览器提供的 API, 插件只是提供了一个更直观的配置界面而已,然后转换为浏览器要求的语法提供给浏览器,实际还是浏览器在控制网络请求的,所以不存在 rewrite 网络请求的问题。
我也一直在用。

只是此前没有时间精力维护这个项目,所以插件转让给了别人,但是发现好像对方也没升级,所以现在有什么需要优化的,我也升级不了了。 : (

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

3 participants