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

macOS 10.12 Beta 系统PAC代理不支持file://形式的url,需要以http://形式提供 #30

Closed
meritozh opened this issue Aug 10, 2016 · 20 comments
Labels

Comments

@meritozh
Copy link

如题,这个bug我无法理解……

@qiuyuzhou
Copy link
Collaborator

这个暂时解决不了,我没有机器可以装beta版,工作机器不能随便动。
有没有其他有条件的人给看下?

@qiuyuzhou qiuyuzhou added the bug label Aug 10, 2016
@qiuyuzhou
Copy link
Collaborator

@meritozh 建议你给出更多信息

  • ~/.ShadowsocksX-NG/gfwlist.js在不在?
  • 网络代理设置里的自动代理设置是否能正确设置上?

目前不知道是否10.12Beta都有问题?其他人有问题或没问题,都可以留言下

@meritozh
Copy link
Author

@qiuyuzhou

  • gfwlist.js 存在
  • 网络的代理设置正确

@ghost
Copy link

ghost commented Aug 14, 2016

@meritozh 可能是 Safari 的問題。在「Auto by PAC」模式下,Chrome 是可以正常連結 Google、YouTube 等網站的。

@qinyuhang
Copy link
Contributor

这个可能是因为:

注:Safari浏览器不支持SOCKS5关键字,因此请再额外添加以"SOCKS"关键字开头的代理,IP与端口号不变

https://github.com/breakwa11/gfw_whitelist/blob/master/README.md

@qiuyuzhou
Copy link
Collaborator

缺省是包括socks关键字的

var proxy = "SOCKS5 127.0.0.1:1086; SOCKS 127.0.0.1:1086; DIRECT;";

@qinyuhang
Copy link
Contributor

这个原因就有点不明了,可以试试回头用一个外接硬盘装一个10.12来测试一下。

@qiuyuzhou
Copy link
Collaborator

@meritozh 查看系统日志没有?

@qinyuhang
Copy link
Contributor

经测试,10.12确实存在此问题。ShadowsocksX-NG PAC 模式下 Safari 不能FQ,但是原版的 SSX 的 PAC 模式可以正常工作。且直接在 macOS 10.12 下用 Xcode 编译 debug 没有直接报错,应该不是
疑似错误 console 截图如下:(需要的话把logs文件po到这里)
2016-08-15 12 52 15
2016-08-15 12 55 21
2016-08-15 12 55 31
2016-08-15 12 56 11
2016-08-15 12 56 34

@qiuyuzhou
Copy link
Collaborator

qiuyuzhou commented Aug 15, 2016

那就是对file://前缀的URL支持有问题,只能使用http://前缀pac地址。

先等apple修复吧,可以去apple报bug。

ShadowsocksX-NG进行workaround的话,需要内嵌web server

或者谁知道有什么,简单好维护的内嵌web server库?

@qinyuhang
Copy link
Contributor

所以这个只是Safari beta的问题?使用老版本的Safari可以解决?

Qiu Yuzhou notifications@github.com于2016年8月15日 周一09:23写道:

那就是对file://前缀的URL支持有问题,只能使用http://前缀pac地址 http://xn--pac-jn2eo7t0cq505a。

先等apple修复吧,可以去apple报bug。

ShadowsocksX-NG进行workaround的话,需要内嵌web server


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#30 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF8zUf4KOzAFuTfj1lkyZcuCqUprPYohks5qf7-DgaJpZM4JhQZV
.

@qinyuhang
Copy link
Contributor

https://github.com/swisspol/GCDWebServer/
这个 web server 库是原版用的,支持苹果全平台,现在开发更新也挺频繁的,可否考虑一下?

@meritozh
Copy link
Author

@qinyuhang 这就应该是系统网络代理的问题了吧。Safari用的是系统代理设置,log显示PAC文件源无法读取,应该就是对file://协议限制了

@qinyuhang
Copy link
Contributor

@meritozh 可否帮忙测试一下 https://github.com/qinyuhang/ShadowsocksX-NG/releases/tag/1.2 我做了 “workaround的话,需要内嵌web server” #42 的朋友 ~/.ShadowsocksX-NG/gfwlist.js 不存在

@qiuyuzhou qiuyuzhou changed the title macOS 10.12 Beta 系统PAC代理失效,全局代理依旧有效 macOS 10.12 Beta 系统PAC代理不支持file://形式的url,需要以http://形式提供 Aug 24, 2016
@Mac0ne16
Copy link

Mac0ne16 commented Sep 8, 2016

哎呀,GM版本也是无法使用的,估计正式版一样的。正式版估计也会被禁用的。

@qinyuhang
Copy link
Contributor

要是很不方便的话 可以使用我那个补丁来源的app……

Mac0ne16 notifications@github.com于2016年9月8日 周四16:29写道:

哎呀,GM版本也是无法使用的,估计正式版一样的。正式版估计也会被禁用的。


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#30 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF8zUUzKG8eeD7KFxKMX0GRXRnoFB5AWks5qn8dPgaJpZM4JhQZV
.

@qinyuhang
Copy link
Contributor

斑斑驳

秦宇航 qinyuhangxiaoxiang@gmail.com于2016年9月9日 周五20:03写道:

要是很不方便的话 可以使用我那个补丁来源的app……

Mac0ne16 notifications@github.com于2016年9月8日 周四16:29写道:

哎呀,GM版本也是无法使用的,估计正式版一样的。正式版估计也会被禁用的。


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#30 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF8zUUzKG8eeD7KFxKMX0GRXRnoFB5AWks5qn8dPgaJpZM4JhQZV
.

@Chrysochrome
Copy link

正式版中也无法使用啊,应该是Safari的问题,chrome使用pac模式就可以正常使用。

@Gaszc
Copy link

Gaszc commented Oct 5, 2016

@g1084164986
chrome中pac是通过SwitchyOmega之类的plugin实现的吧?SwitchyOmega实际是preload ‘https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt’ 中的信息,并不是读取local file

@fifizy
Copy link

fifizy commented Dec 9, 2016

类似的问题,解决了。在网络设置中增加sock5代理。sock5和pac同时使用,Safari正常FQ

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

No branches or pull requests

7 participants