mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-26 12:56:58 +00:00
fix sysproxy exec arg
This commit is contained in:
parent
4fc0738dad
commit
a459978ffb
1 changed files with 6 additions and 2 deletions
|
@ -41,7 +41,9 @@ namespace v2rayN.HttpProxyHandler
|
|||
if (type == ListenerType.GlobalHttp)
|
||||
{
|
||||
//ProxySetting.SetProxy($"{Global.Loopback}:{port}", Global.IEProxyExceptions, 2);
|
||||
SysProxyHandle.SetIEProxy(true, true, $"{Global.Loopback}:{port}");
|
||||
string strHttpProxy = $"{Global.httpProtocol}{Global.Loopback}:{port}";
|
||||
SysProxyHandle.SetIEProxy(true, $"http={strHttpProxy};https={strHttpProxy};ftp={strHttpProxy}",
|
||||
config.systemProxyExceptions);
|
||||
}
|
||||
else if (type == ListenerType.HttpOpenAndClear)
|
||||
{
|
||||
|
@ -166,7 +168,9 @@ namespace v2rayN.HttpProxyHandler
|
|||
}
|
||||
if (type == ESysProxyType.ForcedChange)
|
||||
{
|
||||
SysProxyHandle.SetIEProxy(true, $"{Global.Loopback}:{port}", config.systemProxyExceptions);
|
||||
string strHttpProxy = $"{Global.httpProtocol}{Global.Loopback}:{port}";
|
||||
SysProxyHandle.SetIEProxy(true, $"http={strHttpProxy};https={strHttpProxy};ftp={strHttpProxy}",
|
||||
config.systemProxyExceptions);
|
||||
}
|
||||
else if (type == ESysProxyType.ForcedClear)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue