public void EnableExcludeMode(string[] appPaths, string[] ips) { var apps = GetAppPaths(appPaths); if ((apps == null || apps.Length == 0) && (ips == null || ips.Length == 0)) { return; } EnsureSucceeded( () => _filters.EnableExcludeMode(apps, ips, _bestInterface.LocalIpAddress()), "SplitTunnel: Enabling exclude mode"); }
public void EnableExcludeMode(string[] appPaths, string[] ips) { if (appPaths != null && appPaths.Length > 0) { var apps = appPaths.Where(File.Exists).ToArray(); if (apps.Length == 0) { return; } EnsureSucceeded( () => _filters.EnableExcludeMode(apps, _bestInterface.LocalIpAddress()), "SplitTunnel: Enabling exclude mode"); } if (ips != null && ips.Length > 0) { _routes.Add(ips); } }
public void EnableExcludeMode(string[] appPaths, string[] ips) { string[] apps = new string[0]; if (appPaths != null) { apps = appPaths.Where(File.Exists).ToArray(); } string[] excludedIPs = new string[0]; if (ips != null) { excludedIPs = ips; } if (apps.Length == 0 && excludedIPs.Length == 0) { return; } EnsureSucceeded( () => _filters.EnableExcludeMode(apps, excludedIPs, _bestInterface.LocalIpAddress()), "SplitTunnel: Enabling exclude mode"); }