SetIEProxy : add prefix http://

This commit is contained in:
windfallw 2021-06-01 16:49:06 +08:00
parent 5b271108c0
commit 2892caa761

View file

@ -41,7 +41,7 @@ namespace v2rayN.HttpProxyHandler
if (type == ListenerType.GlobalHttp)
{
//ProxySetting.SetProxy($"{Global.Loopback}:{port}", Global.IEProxyExceptions, 2);
SysProxyHandle.SetIEProxy(true, true, $"{Global.Loopback}:{port}");
SysProxyHandle.SetIEProxy(true, true, $"{Global.httpProtocol}{Global.Loopback}:{port}");
}
else if (type == ListenerType.HttpOpenAndClear)
{
@ -166,7 +166,7 @@ namespace v2rayN.HttpProxyHandler
}
if (type == ESysProxyType.ForcedChange)
{
SysProxyHandle.SetIEProxy(true, true, $"{Global.Loopback}:{port}");
SysProxyHandle.SetIEProxy(true, true, $"{Global.httpProtocol}{Global.Loopback}:{port}");
}
else if (type == ESysProxyType.ForcedClear)
{