mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
Remove Netch Firewall Rules will Remove rules that ApplicationName Start with Netch Directory.
This commit is contained in:
@@ -66,7 +66,7 @@ namespace Netch.Utils
|
||||
|
||||
try
|
||||
{
|
||||
foreach (var rule in FirewallManager.Instance.Rules.Where(r => r.Name == Netch))
|
||||
foreach (var rule in FirewallManager.Instance.Rules.Where(r => r.ApplicationName?.StartsWith(Global.NetchDir) ?? r.Name == Netch))
|
||||
FirewallManager.Instance.Rules.Remove(rule);
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
Reference in New Issue
Block a user