mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-15 01:35:00 +03:00
Add system proxy exception function for linux
https://github.com/2dust/v2rayN/issues/6214
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
try
|
||||
{
|
||||
var port = AppHandler.Instance.GetLocalPort(EInboundProtocol.socks);
|
||||
var exceptions = config.SystemProxyItem.SystemProxyExceptions;
|
||||
if (port <= 0)
|
||||
{
|
||||
return false;
|
||||
@@ -27,7 +28,7 @@
|
||||
break;
|
||||
}
|
||||
case ESysProxyType.ForcedChange when Utils.IsLinux():
|
||||
await ProxySettingLinux.SetProxy(Global.Loopback, port);
|
||||
await ProxySettingLinux.SetProxy(Global.Loopback, port, exceptions);
|
||||
break;
|
||||
|
||||
case ESysProxyType.ForcedChange when Utils.IsOSX():
|
||||
|
||||
Reference in New Issue
Block a user