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:
msxfXF 2022-09-29 11:03:30 +08:00 committed by GitHub
parent ccda957e8f
commit e5a9eb6810
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
{