- Shadowsocks is an open source project for noneprofit. If you bought the service from a provider, please contact them. / 影梭(Shadowsocks)是一个开源非盈利项目,不提供任何托管服务。如果你是从服务提供商购买的服务,请联系他们
- If you have questions rather than Shadowsocks Windows client, please go to / 如果你有非影梭Windows客户端相关的问题,请去 https://github.com/shadowsocks
- Please read Wiki carefully, especially / 提问前请先阅读wiki https://github.com/shadowsocks/shadowsocks-windows/wiki/Troubleshooting.
- Or search from Issue Board / 或在Issue Board中搜索 https://github.com/shadowsocks/shadowsocks-windows/issues?utf8=%E2%9C%93&q=is%3Aissue
- Please answer the following questions before submission. Questions lack of details will be closed. / 请按照以下格式描述你的问题,描述不清的问题将会被关闭
Shadowsocks version / 影梭版本
Shadowsocks Windows client 4.1.6
Environment(Operating system, .NET Framework, etc) / 使用环境(操作系统,.NET Framework等)
Windows 10
Config and error log in detail (with all sensitive info masked) / 配置文件和日志文件(请隐去敏感信息)
[2019-07-04 10:39:48] Shadowsocks started (4.1.5)
[2019-07-04 10:39:49] [E] sysproxy - SysproxyExitError:Error setting options: 12178 (null)
[2019-07-04 10:41:50] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:42:55] System.Net.WebException: 在 WebClient 请求期间发生异常。 ---> System.IO.IOException: 从传输流收到意外的 EOF 或 0 个字节。
在 System.Net.ConnectStream.EndRead(IAsyncResult asyncResult)
在 System.Net.WebClient.DownloadBitsReadCallbackState(DownloadBitsState state, IAsyncResult result)
--- 内部异常堆栈跟踪的结尾 ---
[2019-07-04 10:42:55] Shadowsocks started (4.1.5)
[2019-07-04 10:42:55]
=========================
Registered Encryptor Info
aes-128-cfb=>StreamOpenSSLEncryptor
aes-192-cfb=>StreamOpenSSLEncryptor
aes-256-cfb=>StreamOpenSSLEncryptor
aes-128-ctr=>StreamOpenSSLEncryptor
aes-192-ctr=>StreamOpenSSLEncryptor
aes-256-ctr=>StreamOpenSSLEncryptor
bf-cfb=>StreamOpenSSLEncryptor
camellia-128-cfb=>StreamOpenSSLEncryptor
camellia-192-cfb=>StreamOpenSSLEncryptor
camellia-256-cfb=>StreamOpenSSLEncryptor
rc4-md5=>StreamOpenSSLEncryptor
salsa20=>StreamSodiumEncryptor
chacha20=>StreamSodiumEncryptor
chacha20-ietf=>StreamSodiumEncryptor
aes-128-gcm=>AEADOpenSSLEncryptor
aes-192-gcm=>AEADOpenSSLEncryptor
aes-256-gcm=>AEADOpenSSLEncryptor
chacha20-ietf-poly1305=>AEADOpenSSLEncryptor
xchacha20-ietf-poly1305=>AEADSodiumEncryptor
=========================
[2019-07-04 10:42:55] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:42:59] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:43:07] connect to api.github.com:443
[2019-07-04 10:43:07] Socket connected to ss server: mo.a.cloudss.win:12035
[2019-07-04 10:43:11] connect to github.com:443
[2019-07-04 10:43:11] Socket connected to ss server: mo.a.cloudss.win:12035
[2019-07-04 10:43:15] connect to github-production-release-asset-2e65be.s3.amazonaws.com:443
[2019-07-04 10:43:15] Socket connected to ss server: mo.a.cloudss.win:12035
[2019-07-04 10:45:46] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:45:48] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:45:54] Shadowsocks started (4.1.5)
[2019-07-04 10:45:55]
=========================
Registered Encryptor Info
aes-128-cfb=>StreamOpenSSLEncryptor
aes-192-cfb=>StreamOpenSSLEncryptor
aes-256-cfb=>StreamOpenSSLEncryptor
aes-128-ctr=>StreamOpenSSLEncryptor
aes-192-ctr=>StreamOpenSSLEncryptor
aes-256-ctr=>StreamOpenSSLEncryptor
bf-cfb=>StreamOpenSSLEncryptor
camellia-128-cfb=>StreamOpenSSLEncryptor
camellia-192-cfb=>StreamOpenSSLEncryptor
camellia-256-cfb=>StreamOpenSSLEncryptor
rc4-md5=>StreamOpenSSLEncryptor
salsa20=>StreamSodiumEncryptor
chacha20=>StreamSodiumEncryptor
chacha20-ietf=>StreamSodiumEncryptor
aes-128-gcm=>AEADOpenSSLEncryptor
aes-192-gcm=>AEADOpenSSLEncryptor
aes-256-gcm=>AEADOpenSSLEncryptor
chacha20-ietf-poly1305=>AEADOpenSSLEncryptor
xchacha20-ietf-poly1305=>AEADSodiumEncryptor
=========================
[2019-07-04 10:45:55] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:45:57] connect to api.github.com:443
[2019-07-04 10:45:58] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:46:00] Socket connected to ss server: mo.a.cloudss.win:12035
[2019-07-04 10:46:04] Shadowsocks started (4.1.5)
[2019-07-04 10:46:04] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:46:05] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:47:16] Shadowsocks started (4.1.5)
[2019-07-04 10:47:16] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:47:17] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:47:24] Shadowsocks started (4.1.5)
[2019-07-04 10:47:24] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:47:25] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:50:10] Shadowsocks started (4.1.5)
[2019-07-04 10:50:10] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:50:18] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:51:18] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:51:19] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:51:47] Shadowsocks started (4.1.6)
[2019-07-04 10:51:47] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:51:49] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:53:43] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:53:44] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:53:46] Shadowsocks started (4.1.6)
[2019-07-04 10:53:47] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:53:48] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:53:50] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:53:52] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:54:00] Shadowsocks started (4.1.6)
[2019-07-04 10:54:00] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:54:01] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:55:55] Shadowsocks started (4.1.6)
[2019-07-04 10:55:55] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:55:58] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:56:47] Shadowsocks started (4.1.6)
[2019-07-04 10:56:47] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:57:24] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:58:07] Shadowsocks started (4.1.6)
[2019-07-04 10:58:07] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:58:08] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:58:18] Shadowsocks started (4.1.6)
[2019-07-04 10:58:19] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:58:21] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:58:28] Shadowsocks started (4.1.6)
[2019-07-04 10:58:28] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:58:29] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:58:30] Shadowsocks started (4.1.6)
[2019-07-04 10:58:30] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:58:31] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:58:36] Shadowsocks started (4.1.6)
[2019-07-04 10:58:36] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:58:42] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:58:42] Shadowsocks started (4.1.6)
[2019-07-04 10:58:42] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:58:43] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:59:35] Detected: PAC file 'pac.txt' was deleted.
[2019-07-04 10:59:35] Detected: User Rule file 'user-rule.txt' was deleted.
[2019-07-04 10:59:35] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:59:36] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:59:42] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:59:43] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:59:46] Shadowsocks started (4.1.6)
[2019-07-04 10:59:46] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 10:59:50] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:00:27] Detected: PAC file 'pac.txt' was deleted.
[2019-07-04 11:00:27] Detected: PAC file 'pac.txt' was created.
[2019-07-04 11:00:27] Detected: User Rule file 'user-rule.txt' was created.
[2019-07-04 11:00:27] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:00:27] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:00:27] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:00:34] Shadowsocks started (4.1.6)
[2019-07-04 11:00:35] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:00:36] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:01:00] Shadowsocks started (4.1.6)
[2019-07-04 11:01:00] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:01:01] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:01:05] Shadowsocks started (4.1.6)
[2019-07-04 11:01:05] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:01:07] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:01:08] Shadowsocks started (4.1.6)
[2019-07-04 11:01:08] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:01:10] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:01:23] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:01:24] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:01:33] Shadowsocks started (4.1.2)
[2019-07-04 11:01:33]
=========================
Registered Encryptor Info
aes-128-cfb=>StreamOpenSSLEncryptor
aes-192-cfb=>StreamOpenSSLEncryptor
aes-256-cfb=>StreamOpenSSLEncryptor
aes-128-ctr=>StreamOpenSSLEncryptor
aes-192-ctr=>StreamOpenSSLEncryptor
aes-256-ctr=>StreamOpenSSLEncryptor
bf-cfb=>StreamOpenSSLEncryptor
camellia-128-cfb=>StreamOpenSSLEncryptor
camellia-192-cfb=>StreamOpenSSLEncryptor
camellia-256-cfb=>StreamOpenSSLEncryptor
rc4-md5=>StreamOpenSSLEncryptor
salsa20=>StreamSodiumEncryptor
chacha20=>StreamSodiumEncryptor
chacha20-ietf=>StreamSodiumEncryptor
aes-128-gcm=>AEADOpenSSLEncryptor
aes-192-gcm=>AEADOpenSSLEncryptor
aes-256-gcm=>AEADOpenSSLEncryptor
chacha20-ietf-poly1305=>AEADOpenSSLEncryptor
xchacha20-ietf-poly1305=>AEADSodiumEncryptor
=========================
[2019-07-04 11:01:33] Shadowsocks.Util.SystemProxy.ProxyException: Error query options: 12178 (null)
在 Shadowsocks.Util.SystemProxy.Sysproxy.ExecSysproxy(String arguments)
在 Shadowsocks.Util.SystemProxy.Sysproxy.SetIEProxy(Boolean enable, Boolean global, String proxyServer, String pacURL)
在 Shadowsocks.Controller.SystemProxy.Update(Configuration config, Boolean forceDisable, PACServer pacSrv)
[2019-07-04 11:01:58] System.Net.WebException: 在 WebClient 请求期间发生异常。 ---> System.IO.IOException: 从传输流收到意外的 EOF 或 0 个字节。
在 System.Net.ConnectStream.EndRead(IAsyncResult asyncResult)
在 System.Net.WebClient.DownloadBitsReadCallbackState(DownloadBitsState state, IAsyncResult result)
--- 内部异常堆栈跟踪的结尾 ---
[2019-07-04 11:01:58] Shadowsocks started (4.1.2)
[2019-07-04 11:01:58]
=========================
Registered Encryptor Info
aes-128-cfb=>StreamOpenSSLEncryptor
aes-192-cfb=>StreamOpenSSLEncryptor
aes-256-cfb=>StreamOpenSSLEncryptor
aes-128-ctr=>StreamOpenSSLEncryptor
aes-192-ctr=>StreamOpenSSLEncryptor
aes-256-ctr=>StreamOpenSSLEncryptor
bf-cfb=>StreamOpenSSLEncryptor
camellia-128-cfb=>StreamOpenSSLEncryptor
camellia-192-cfb=>StreamOpenSSLEncryptor
camellia-256-cfb=>StreamOpenSSLEncryptor
rc4-md5=>StreamOpenSSLEncryptor
salsa20=>StreamSodiumEncryptor
chacha20=>StreamSodiumEncryptor
chacha20-ietf=>StreamSodiumEncryptor
aes-128-gcm=>AEADOpenSSLEncryptor
aes-192-gcm=>AEADOpenSSLEncryptor
aes-256-gcm=>AEADOpenSSLEncryptor
chacha20-ietf-poly1305=>AEADOpenSSLEncryptor
xchacha20-ietf-poly1305=>AEADSodiumEncryptor
=========================
[2019-07-04 11:01:58] Shadowsocks.Util.SystemProxy.ProxyException: Error query options: 12178 (null)
在 Shadowsocks.Util.SystemProxy.Sysproxy.ExecSysproxy(String arguments)
在 Shadowsocks.Util.SystemProxy.Sysproxy.SetIEProxy(Boolean enable, Boolean global, String proxyServer, String pacURL)
在 Shadowsocks.Controller.SystemProxy.Update(Configuration config, Boolean forceDisable, PACServer pacSrv)
[2019-07-04 11:03:20] Shadowsocks started (4.1.2)
[2019-07-04 11:03:20]
=========================
Registered Encryptor Info
aes-128-cfb=>StreamOpenSSLEncryptor
aes-192-cfb=>StreamOpenSSLEncryptor
aes-256-cfb=>StreamOpenSSLEncryptor
aes-128-ctr=>StreamOpenSSLEncryptor
aes-192-ctr=>StreamOpenSSLEncryptor
aes-256-ctr=>StreamOpenSSLEncryptor
bf-cfb=>StreamOpenSSLEncryptor
camellia-128-cfb=>StreamOpenSSLEncryptor
camellia-192-cfb=>StreamOpenSSLEncryptor
camellia-256-cfb=>StreamOpenSSLEncryptor
rc4-md5=>StreamOpenSSLEncryptor
salsa20=>StreamSodiumEncryptor
chacha20=>StreamSodiumEncryptor
chacha20-ietf=>StreamSodiumEncryptor
aes-128-gcm=>AEADOpenSSLEncryptor
aes-192-gcm=>AEADOpenSSLEncryptor
aes-256-gcm=>AEADOpenSSLEncryptor
chacha20-ietf-poly1305=>AEADOpenSSLEncryptor
xchacha20-ietf-poly1305=>AEADSodiumEncryptor
=========================
[2019-07-04 11:03:20] Shadowsocks.Util.SystemProxy.ProxyException: Error query options: 12178 (null)
在 Shadowsocks.Util.SystemProxy.Sysproxy.ExecSysproxy(String arguments)
在 Shadowsocks.Util.SystemProxy.Sysproxy.SetIEProxy(Boolean enable, Boolean global, String proxyServer, String pacURL)
在 Shadowsocks.Controller.SystemProxy.Update(Configuration config, Boolean forceDisable, PACServer pacSrv)
[2019-07-04 11:03:28] Shadowsocks started (4.1.2)
[2019-07-04 11:03:28]
=========================
Registered Encryptor Info
aes-128-cfb=>StreamOpenSSLEncryptor
aes-192-cfb=>StreamOpenSSLEncryptor
aes-256-cfb=>StreamOpenSSLEncryptor
aes-128-ctr=>StreamOpenSSLEncryptor
aes-192-ctr=>StreamOpenSSLEncryptor
aes-256-ctr=>StreamOpenSSLEncryptor
bf-cfb=>StreamOpenSSLEncryptor
camellia-128-cfb=>StreamOpenSSLEncryptor
camellia-192-cfb=>StreamOpenSSLEncryptor
camellia-256-cfb=>StreamOpenSSLEncryptor
rc4-md5=>StreamOpenSSLEncryptor
salsa20=>StreamSodiumEncryptor
chacha20=>StreamSodiumEncryptor
chacha20-ietf=>StreamSodiumEncryptor
aes-128-gcm=>AEADOpenSSLEncryptor
aes-192-gcm=>AEADOpenSSLEncryptor
aes-256-gcm=>AEADOpenSSLEncryptor
chacha20-ietf-poly1305=>AEADOpenSSLEncryptor
xchacha20-ietf-poly1305=>AEADSodiumEncryptor
=========================
[2019-07-04 11:03:28] Shadowsocks.Util.SystemProxy.ProxyException: Error query options: 12178 (null)
在 Shadowsocks.Util.SystemProxy.Sysproxy.ExecSysproxy(String arguments)
在 Shadowsocks.Util.SystemProxy.Sysproxy.SetIEProxy(Boolean enable, Boolean global, String proxyServer, String pacURL)
在 Shadowsocks.Controller.SystemProxy.Update(Configuration config, Boolean forceDisable, PACServer pacSrv)
[2019-07-04 11:03:51] Shadowsocks.Util.SystemProxy.ProxyException: Error query options: 12178 (null)
在 Shadowsocks.Util.SystemProxy.Sysproxy.ExecSysproxy(String arguments)
在 Shadowsocks.Util.SystemProxy.Sysproxy.SetIEProxy(Boolean enable, Boolean global, String proxyServer, String pacURL)
在 Shadowsocks.Controller.SystemProxy.Update(Configuration config, Boolean forceDisable, PACServer pacSrv)
[2019-07-04 11:04:20] Shadowsocks started (4.1.5)
[2019-07-04 11:04:20] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:04:22] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:04:42] mo.a.cloudss.win:12035 timed out
[2019-07-04 11:12:34] Shadowsocks started (4.1.5)
[2019-07-04 11:12:35] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:12:36] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:12:50] Shadowsocks started (4.1.5)
[2019-07-04 11:12:50] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 11:12:52] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 16:55:34] Shadowsocks started (4.1.5)
[2019-07-04 16:55:35] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 16:55:56] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 16:56:28] System.Net.WebException: 在 WebClient 请求期间发生异常。 ---> System.IO.IOException: 文件“S:Shadowsocksss_win_tempShadowsocks-4.1.6.zip”正由另一进程使用,因此该进程无法访问此文件。
在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
在 System.Net.WebClient.DownloadFileAsync(Uri address, String fileName, Object userToken)
--- 内部异常堆栈跟踪的结尾 ---
[2019-07-04 16:57:44] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 16:57:45] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 16:57:54] Shadowsocks started (4.1.6)
[2019-07-04 16:57:54] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 16:57:58] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 17:00:02] Shadowsocks started (4.1.6)
[2019-07-04 17:00:02] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 17:00:05] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
[2019-07-04 17:11:18] Shadowsocks started (4.1.6)
[2019-07-04 17:11:18] [E] sysproxy - SysproxyExitError:Error query options: 12178 (null)
- Remove From My Forums
-
Question
-
Hi All,
I’m using the below code in my Windows service project for getting the proxy settings in Windows7 32bit OS:
CString
strBuff = «»;
unsigned long
nSize = 4096;
char szBuf[4096]
= { 0 };
INTERNET_PROXY_INFO*
pInfo = (INTERNET_PROXY_INFO*)szBuf;
////////////////////////////////////////////////////////////
try
{
if(InternetQueryOption(NULL, INTERNET_OPTION_PROXY, pInfo, &nSize))
{CString strLog=»»;
strLog.Format(«GetLastError= %ld»,GetLastError());
OutputDebugString(strLog);strBuff = pInfo->lpszProxy;
if(strBuff != «»)
{
// success
}
else
{
// Failed
}
}}
catch(…)
{
}But everytime I’m getting the error code 1008, and the strBuff is null. I have included the «Wininet.h» also. Is anything wrong with my code, or there is anything I’m missing from my project.
Please help me
Thanks,
R-VR
-
Edited by
Thursday, May 22, 2014 1:43 PM
-
Edited by
Answers
-
On 5/27/2014 3:27 AM, R-VR wrote:
How can I get the system proxy information from a Windows Service Project.
I don’t believe there exists such a thing as «system proxy information». There is proxy information for each user. If you want the service to retrieve proxy information set up for your user account, then configure it to run under your user
account.
Igor Tandetnik
-
Marked as answer by
R-V-R
Wednesday, May 28, 2014 5:21 AM
-
Marked as answer by
kuyhAa.Me -Psiphon 3 build 164 Full Terbaru merupakan sebuah software yang dapat digunakan sebagai open access content yang di blokir ( internet positif ). Jika anda mencari software VPN, Psiphon bisa di manfaatkan sebagai Psiphon gratisan yang sangat mudah di gunakan.
Software ini menggunakan VPN, SSH dan HTTP proxy untuk membuka segala bentuk pemblokiran konten. Jika anda mencari software cara membuka blokir internet positif dari pemerintah, administrator atau ISP, coba gunakan Psiphon 3 build 164 Terbaru semoga dapat membantu mengatasi hal tersebut.
Tehnik dari software ini adalah membuat IP di komputer anda seolah olah berada di negara lain. Psiphon 3 full version ini dapat anda gunakan kapanpun karena gratis. anda dapat dengan bebas berselancar deepweb secara aman.
System requirements:
Windows XP, Windows Vista, Windows 7 Windows 8, Windows 8.1, Windows 10
Key features:
• Bypassing regional restrictions on the Internet;
• Automatic connection to the nearest server;
• Compatible with all modern versions of Windows
• Connection speed is not too high;
• Data encryption, providing basic user protection;
• Work in portable mode;
• Simple and intuitive interface.
Software Terkait Lainnya
- DOMDOMSOFT MANGA DOWNLOADER 5.0.9 Included Keygen
- Ace Translator 15.5 Full
- KeepVid Music 8.2.6.2 Full Version
- Download FileZilla Free v3.6.0.2
- 4K Video Downloader 4.22.2.5190 Full Terbaru
Langkah Menggunakan
- Download kemudian extract
- selanjutnya jalankan
- pilih negara yang anda inginkan atau default saja
- kemudian klik connect
- enjoy
- salam luar biasa
Size: 5 Mb
=> Psiphon 3.164 full | via zippyshare
=> Psiphon 3.164 full | via kFile
Penting : Untuk menghindari salah download ! pastikan Size sesuai/mirip dengan Info
Password : Lihat Password | Extract Error: Update Winrar | Info : FAQ | Howto? : Cara Download | Or
- Sedia KOPI => Traktir Kopi
- Block FAKE SITE kuyhAa ! => List Fake Site
- Butuh Key Original dan JASA ? Contact Us
- Jika via OD minta password dan username Lihat Disini Caranya
- Untuk mengetahui password, silahkan klik link Lihat Password di atas
- Untuk extract file Part, silahkan klik link FAQ di atas
- Jika Extract file Error or Damage, silahkan klik link Update Winrar di atas
- Langkah Setting Firewall Mudah
- Langkah Setting Firewall Dengan Kaspersky
Следующий код более или менее просто скопирован из документации MSDN. В Windows Vista и Windows 7 работает нормально, но при сбоях в XP с нарушением прав доступа в вызове InternetQueryOption
. Кто-нибудь понял, в чем может быть проблема?
int main(int argc, char* argv[])
{
HINTERNET hInternet = InternetOpen("x", INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);
//
// 1. Set
//
{
INTERNET_PER_CONN_OPTION_LIST List;
INTERNET_PER_CONN_OPTION Option[2];
unsigned long nSize = sizeof(INTERNET_PER_CONN_OPTION_LIST);
Option[0].dwOption = INTERNET_PER_CONN_AUTOCONFIG_URL;
Option[0].Value.pszValue = "http://myserver/get_proxy_info.dll";
Option[1].dwOption = INTERNET_PER_CONN_FLAGS;
Option[1].Value.dwValue = PROXY_TYPE_AUTO_PROXY_URL;
List.dwSize = sizeof(INTERNET_PER_CONN_OPTION_LIST);
List.pszConnection = NULL;
List.dwOptionCount = 2;
List.dwOptionError = 0;
List.pOptions = Option;
if(!InternetSetOption(hInternet, INTERNET_OPTION_PER_CONNECTION_OPTION, &List, nSize))
printf("InternetQueryOption failed! (%d)n", GetLastError());
}
//
// 2. Query
//
{
INTERNET_PER_CONN_OPTION_LIST List;
INTERNET_PER_CONN_OPTION Option[5];
unsigned long nSize = sizeof(INTERNET_PER_CONN_OPTION_LIST);
Option[0].dwOption = INTERNET_PER_CONN_AUTOCONFIG_URL;
Option[1].dwOption = INTERNET_PER_CONN_AUTODISCOVERY_FLAGS;
Option[2].dwOption = INTERNET_PER_CONN_FLAGS;
Option[3].dwOption = INTERNET_PER_CONN_PROXY_BYPASS;
Option[4].dwOption = INTERNET_PER_CONN_PROXY_SERVER;
List.dwSize = sizeof(INTERNET_PER_CONN_OPTION_LIST);
List.pszConnection = NULL;
List.dwOptionCount = 5;
List.dwOptionError = 0;
List.pOptions = Option;
printf("InternetQueryOption:n");
if(!InternetQueryOption(hInternet, INTERNET_OPTION_PER_CONNECTION_OPTION, &List, &nSize))
printf("InternetQueryOption failed! (%d)n", GetLastError());
if(Option[0].Value.pszValue != NULL)
printf("%sn", Option[0].Value.pszValue);
if((Option[2].Value.dwValue & PROXY_TYPE_AUTO_PROXY_URL) == PROXY_TYPE_AUTO_PROXY_URL)
printf("PROXY_TYPE_AUTO_PROXY_URLn");
if((Option[2].Value.dwValue & PROXY_TYPE_AUTO_DETECT) == PROXY_TYPE_AUTO_DETECT)
printf("PROXY_TYPE_AUTO_DETECTn");
INTERNET_VERSION_INFO Version;
nSize = sizeof(INTERNET_VERSION_INFO);
InternetQueryOption(hInternet, INTERNET_OPTION_VERSION, &Version, &nSize);
if(Option[0].Value.pszValue != NULL)
GlobalFree(Option[0].Value.pszValue);
if(Option[3].Value.pszValue != NULL)
GlobalFree(Option[3].Value.pszValue);
if(Option[4].Value.pszValue != NULL)
GlobalFree(Option[4].Value.pszValue);
}
}
В Windows XP происходит нарушение доступа к памяти при попытке доступа к чему-либо позади NULL
указатель.
wininet.dll!PROXY_SERVER_LIST::CopyString(void) Unknown
wininet.dll!PROXY_INFO::GetProxySettings(struct INTERNET_PROXY_INFO_EX *,int) Unknown
wininet.dll!PROXY_INFO_GLOBAL::GetProxySettings(struct INTERNET_PROXY_INFO_EX *,int) Unknown
wininet.dll!QueryPerConnOptions(void *,int,struct INTERNET_PER_CONN_OPTION_LISTA *) Unknown
wininet.dll!_InternetQueryOptionA@16() Unknown
> InternetQueryOption.exe!main(int argc=1, char * * argv=0x003e2e60) Line 55 C++
InternetQueryOption.exe!__tmainCRTStartup() Line 278 C
Используется InternetOpen
с установленным прокси-сервером (127.0.0.1:5401
) и обходом (<-loopback>
), но при выполнении InternetQueryOption
с параметром, установленным на INTERNET_OPTION_PROXY
, возвращаемые строки в структуре INTERNET_PROXY_INFO
пусты, но тип доступа правильный, INTERNET_OPEN_TYPE_PROXY
.
Вот сигнатура для InternetQueryOption
и структуры INTERNET_PROXY_INFO
, может я что-то делаю не так:
[DllImport("wininet.dll", SetLastError = true)]
public static extern bool InternetQueryOption([In] IntPtr hInternet, [In] INTERNET_OPTION option, [In, Out] IntPtr buffer, [In, Out] ref int bufferSize);
public enum INTERNET_OPTION : uint
{
PROXY = 38
}
public enum INTERNET_OPEN_TYPE : uint
{
PRECONFIG,
DIRECT,
PROXY = 3,
PRECONFIG_WITH_NO_AUTOPROXY
}
[StructLayout(LayoutKind.Sequential)]
public struct INTERNET_PROXY_INFO
{
public INTERNET_OPEN_TYPE accessType;
private fixed char proxy[500];
private fixed char proxyBypass[500];
}
Обратите внимание, что я пробовал все возможные варианты структуры:
1) proxy
и proxyBypass
находятся string
с MarshalAs(ByValTStr, 500)
;
2) proxy
и proxyBypass
являются string
и присваивают им строку, состоящую из 500 из 0 символов;
3) Вышеуказанные 2 варианта, но структура является классом.
Все 3 возвращают правильный accessType
из PROXY
, но два других поля являются пустыми строками.
1 ответ
Лучший ответ
INTERNET_PROXY_INFO должен быть большим блоком памяти, WinINet установит для вас строковые указатели.
public class WinApi
{
public enum INTERNET_OPTION : uint { PROXY = 38 }
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public struct INTERNET_PROXY_INFOA
{
public IntPtr accessType;
public string proxy;
public string proxyBypass;
}
[DllImport("wininet.dll", SetLastError = true)]
public static extern int InternetQueryOptionA([In] IntPtr hInternet, [In] INTERNET_OPTION option, [In, Out] IntPtr buffer, [In, Out] ref int bufferSize);
}
Вы можете выделить большой двоичный объект памяти и надеяться, что он достаточно большой, или спросите функцию:
int cb = 0;
WinApi.InternetQueryOptionA(IntPtr.Zero, WinApi.INTERNET_OPTION.PROXY, IntPtr.Zero, ref cb);
IntPtr data = Marshal.AllocCoTaskMem(cb);
int succ = WinApi.InternetQueryOptionA(IntPtr.Zero, WinApi.INTERNET_OPTION.PROXY, data, ref cb);
if (succ != 0)
{
WinApi.INTERNET_PROXY_INFOA info = (WinApi.INTERNET_PROXY_INFOA) Marshal.PtrToStructure(data, typeof(WinApi.INTERNET_PROXY_INFOA));
Console.WriteLine(string.Format("{2}: {0}|{1}", info.proxy, info.proxyBypass, info.accessType));
}
Marshal.FreeCoTaskMem(data);
0
Anders
21 Окт 2019 в 04:40
|
|
|
InternetQueryOption валится
, GetLastError возвращает бред вида 0x5d4d39a2
- Подписаться на тему
- Сообщить другу
- Скачать/распечатать тему
|
|
Есть такой код:
DWORD foo() HINTERNET hSession = ::InternetOpen(_T(«User Agent»), INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0); if ( !hSession ) { return FALSE; } DWORD dwFlags = 0; DWORD size = sizeof( DWORD ); if ( !::InternetQueryOption( hSession, INTERNET_OPTION_SECURITY_FLAGS, &dwFlags, &size ) ) return ::GetLastError(); return 0; } InternetQueryOption почему-то валится, причём GetLastError всегда возвращает что-то новое и необычное. |
arj99 |
|
MichSpar, а с какой целью в InternetQueryOption передаешь для запроса INTERNET_OPTION_SECURITY_FLAGS корневой HINTERNET-дескриптор? |
MichSpar |
|
С целью установить в последствии флаг SECURITY_FLAG_IGNORE_REVOCATION и вызова InternetOpenUrl:
dwFlags = dwFlags | SECURITY_FLAG_IGNORE_REVOCATION; if ( !::InternetSetOption( hSession, INTERNET_OPTION_SECURITY_FLAGS, &dwFlags, size ) ) printf( _T( «Warning: failed to set SECURITY_FLAG_IGNORE_REVOCATION: %x», ::GetLastError() ) ); HINTERNET hUrl = ::InternetOpenUrl ( hSession, url, NULL, 0, INTERNET_FLAG_RELOAD | INTERNET_FLAG_NO_UI | INTERNET_FLAG_NO_CACHE_WRITE, 0 ); вызов InternetSetOption тоже, кстати, падает с такими же случайными кодами ошибок. |
arj99 |
|
Насколько понимаю InternetQueryOption и InternetSetOption для INTERNET_OPTION_SECURITY_FLAGS нужно вызывать с первым параметром hUrl = ::InternetOpenUrl(…), а не корневым дескриптором. |
MichSpar |
|
arj99, ты прав. Спасибо |
0 пользователей читают эту тему (0 гостей и 0 скрытых пользователей)
0 пользователей:
- Предыдущая тема
- C/C++: Сетевое программирование
- Следующая тема
[ Script execution time: 0,0231 ] [ 16 queries used ] [ Generated: 9.02.23, 20:22 GMT ]