mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-29 06:16:22 +00:00
Update SysProxyHandle.cs
有些库,比如python的标准库中,会自动补全协议,从而导致代理异常。 如果只写 127.0.0.1:10808 会被解析成 http和https分别走http://127.0.0.1:10808和https://127.0.0.1:10808, 而预期效果是http和https均走http://127.0.0.1:10808,加入协议头后,可以使windows上的python程序正常运行,也符合windows代理规范。
This commit is contained in:
parent
ccda957e8f
commit
e5a9eb6810
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ namespace v2rayN.Handler
|
|||
var strProxy = string.Empty;
|
||||
if (Utils.IsNullOrEmpty(config.systemProxyAdvancedProtocol))
|
||||
{
|
||||
strProxy = $"{Global.Loopback}:{port}";
|
||||
strProxy = $"http=http://{Global.Loopback}:{port};https=http://{Global.Loopback}:{port}";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue