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

Windows10预览版1495x以后无法设置系统代理 #814

Closed
cairoHy opened this issue Oct 21, 2016 · 57 comments

Comments

@cairoHy
Copy link

commented Oct 21, 2016

Version

版本-3.3.4

Environment(Operating system, .NET Framework, etc)

操作系统-Windows10-14951.1000 64位
.NET Framework 4.6.1

Steps you have tried

下载3.3.4版本,设置[启用系统代理]时发生Exception。
clone了源码到本地,重新编译了版本3.3.3,使用没有这个问题。

Config and error log in detail (with all sensitive info masked)

image
image

@wongsyrone

This comment has been minimized.

Copy link
Contributor

commented Oct 21, 2016

The behavior is correct. This is why #797 not working. Microsoft changes WinINET API, but I cannot get details.

ERROR_INVALID_PARAMETER
87 (0x57)
The parameter is incorrect.

@fzhw88

This comment has been minimized.

Copy link

commented Oct 23, 2016

楼主是不是写错了,是14951.1000,我的是x64版本,试了3.3.4倒不会报错,只是依然不能修改系统的代理设置,这个问题是从预览版14936(也许更早?)开始的。猜测是微软改变了相关API,不过在answer社区里微软的人没有给出正面回复。

@cairoHy

This comment has been minimized.

Copy link
Author

commented Oct 23, 2016

@fzhw88
系统版本写错了,已经改过来了。
我的机器上之前的版本使用系统代理:PAC模式正常工作,更新到3.3.4之后就报异常退出。

@wongsyrone

This comment has been minimized.

Copy link
Contributor

commented Oct 23, 2016

In general, if they decide to change API behavior, they should list them in the release note. I guess they break this by accident.

@fzhw88

This comment has been minimized.

Copy link

commented Oct 23, 2016

明白了,原来那个客户端是通过修改注册表做到的,那么还是继续等微软吧……

@fzhw88

This comment has been minimized.

Copy link

commented Oct 25, 2016

answer社区回复这个问题已经解决了,需要等待更新新的预览版。

@wongsyrone

This comment has been minimized.

Copy link
Contributor

commented Oct 25, 2016

Can you paste the link?

@wongsyrone

This comment has been minimized.

Copy link
Contributor

commented Oct 26, 2016

恭喜您的问题得以解决,请您等待之后陆续更新。

这句话来看,只是客套话而已,从全部对话来看他们并没有明确说已经找到问题根源。你应该明确说使用wininet internetsetoption api的程序无法完成预定功能。

@fzhw88

This comment has been minimized.

Copy link

commented Oct 27, 2016

我后来也发现了……真是蛋疼,已经在知乎把问题反馈给了微软中国区的@vczh 希望有效吧,真的不明白微软是怎么搞的,解决了这个问题我就不用快速通道的预览版了,晕死。
https://www.zhihu.com/question/51947290/answer/128250526?group_id=774221773766946816#comment-176841049

@wongsyrone

This comment has been minimized.

Copy link
Contributor

commented Oct 27, 2016

但愿有用吧,总比正式版出来之后才发现不能用好。

@fzhw88

This comment has been minimized.

Copy link

commented Oct 27, 2016

https://www.zhihu.com/question/51947290/answer/128250526?group_id=774971568810901504#comment-177396241
@vczh回复问”GetLastError返回什么“,额,尴尬,我完全不会C#和Win api,哪位大神刚好再用insider版本又懂的可以回复一下?或者给我一段测试代码,Windows PowerShell里可以直接运行调用win api?或者需要别的环境?我试试跑一下。

@breakwa11

This comment has been minimized.

Copy link
Contributor

commented Oct 27, 2016

@fzhw88 返回87

@fzhw88

This comment has been minimized.

Copy link

commented Oct 27, 2016

@breakwa11 已经看到知乎有人回复~

@fzhw88

This comment has been minimized.

Copy link

commented Nov 8, 2016

从另外的反馈里得知wininet API是在3.3.3之后才被使用的,尝试退回到3.3.2甚至2.x版本的shadowsocks客户端,依然不能修改系统代理,不知何故~

@leoshh

This comment has been minimized.

Copy link

commented Nov 16, 2016

win10_14965也设置不了系统代理,希望尽早解决啊

@rc452860

This comment has been minimized.

Copy link

commented Nov 17, 2016

win10_14965 慢速更新通道同无法修改代理。刚更新的。

@Noisyfox Noisyfox closed this Nov 17, 2016
@Noisyfox Noisyfox reopened this Nov 18, 2016
@fzhw88

This comment has been minimized.

Copy link

commented Nov 18, 2016

@yuzhiqiangorg 不明白微软在干嘛,今天快速通道已经更新到了14971,依然没有解决问题。
@leoshh @rc452860 这是微软的问题。

@Noisyfox

This comment has been minimized.

Copy link
Contributor

commented Nov 19, 2016

https://ci.appveyor.com/project/Noisyfox/shadowsocks-windows/build/job/el3wt3hjcuf9u7lb/artifacts

请尝试这个版本。如果有杀毒软件或者360提示一个叫做sysproxy.exe的进程在修改代理,可以加入白名单。

@DaoYangM

This comment has been minimized.

Copy link

commented Nov 19, 2016

楼上的ss确实可以用,也不用添加代理了。

@leoshh

This comment has been minimized.

Copy link

commented Dec 15, 2016

@fzhw88 @angoen 我也是醉了,明明说了要用pre版,还在用正式版却在这发帖是什么心态

@angoen

This comment has been minimized.

Copy link

commented Dec 15, 2016

@leoshh 不好意思,没有注意,不过预先版也不能用,3.4和3.4.1都试了试,都不行

@leoshh

This comment has been minimized.

Copy link

commented Dec 15, 2016

@angoen 抱歉,我口气也冲了点。。我这是能用的,ie开twitter什么的没问题,而下载东西就需要开全局了。你是怎么用不了?是有弹窗报错,还是就是连接超时?

@angoen

This comment has been minimized.

Copy link

commented Dec 15, 2016

@leoshh 没有报错,没有超时,就是打不开那些网站,甚至我可以在chrome上利用Proxy SwitchyOmega这个扩展程序实现代理,但是单独使用ss就不行

@Noisyfox

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2016

全局模式呢?目前pac似乎也有人说有问题

@leoshh

This comment has been minimized.

Copy link

commented Dec 15, 2016

@angoen 用插件也是用的ss的服务器啊,单独使用插件,不用SS软件是打不开的吧

@angoen

This comment has been minimized.

Copy link

commented Dec 15, 2016

@Noisyfox 也不行

@angoen

This comment has been minimized.

Copy link

commented Dec 15, 2016

@leoshh 对,插件也需要ss的支持,但是单独使用ss就不行

@angoen

This comment has been minimized.

Copy link

commented Dec 15, 2016

对了,我曾经使用过win10 重至此电脑 这个功能,会不会跟这个有关系?

@Noisyfox

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2016

你SwitchyOmega用的是http代理还是socks5?试试看http模式能不能用?因为ie用的是http代理

@angoen

This comment has been minimized.

Copy link

commented Dec 15, 2016

@Noisyfox 用的SOCKS5,刚刚试了试http模式,没有问题

@angoen

This comment has been minimized.

Copy link

commented Dec 15, 2016

@Noisyfox 不好意思,刚才是在使用chrome的情况下不能使用ss,我试了试ie,发现可以正常工作

@Noisyfox

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2016

???用SwitchyOmega也不行?

@angoen

This comment has been minimized.

Copy link

commented Dec 15, 2016

@Noisyfox 在chrome浏览器使用SwitchyOmega的情况下,SOCKS5协议和http协议都可以使用,但是关闭SwitchyOmega,chrome浏览器就不能访问google。ie可以正常使用ss

@angoen

This comment has been minimized.

Copy link

commented Dec 15, 2016

@Noisyfox 很抱歉我刚刚没有说清楚

@Noisyfox

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2016

去chrome的代理设置里面检查是否使用系统代理设置

@rc452860

This comment has been minimized.

Copy link

commented Dec 15, 2016

ssr可以用,但是不知道会不会被喷,因为那个作者没有遵守开源协议。。。貌似是这样的

@Noisyfox

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2016

@rc452860 楼上的问题不在设置系统代理上,估计是chrome没有读系统代理设置

@Noisyfox

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2016

@angoen 你所说的关闭SwitchyOmega是指禁用这个插件还是说SwitchyOmega里面设置 [直接连接]

@angoen

This comment has been minimized.

Copy link

commented Dec 15, 2016

@Noisyfox 直接连接

@Noisyfox

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2016

那肯定不行啊,请选择[系统代理]

@Noisyfox

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2016

直接连接是忽略一切代理设置的

@leoshh

This comment has been minimized.

Copy link

commented Dec 15, 2016

@Noisyfox 说到这,我请教一下,就是发现用chrome下载不走SS,这是机制决定的吗?

@angoen

This comment has been minimized.

Copy link

commented Dec 15, 2016

@Noisyfox 我把插件删掉了,已经可以使用了,非常感谢:)

@Noisyfox

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2016

@angoen 我个人还是建议用这个插件,比较灵活,也方便随时添加规则,比起PAC要方便的多

@Noisyfox

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2016

@leoshh 不应该啊?你确定下载用的地址在规则列表里么?

@leoshh

This comment has been minimized.

Copy link

commented Dec 15, 2016

@Noisyfox 这就不清楚了。可能是这个原因吧

@Noisyfox

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2016

理论上浏览网页和下载是没有什么区别的。

@ding352

This comment has been minimized.

Copy link

commented Dec 16, 2016

以管理员身份运行 shadowsocks.exe 可以

@wongsyrone wongsyrone closed this Dec 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
10 participants
You can’t perform that action at this time.