Add system proxy exception function for linux

https://github.com/2dust/v2rayN/issues/6214
This commit is contained in:
2dust
2024-12-06 19:12:32 +08:00
parent 5f5d7172ee
commit dbd4f55981
10 changed files with 73 additions and 10 deletions
@@ -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():