Closed jfevia closed 5 years ago
https://github.com/falahati/WindowsFirewallHelper/blob/e17c78a84130f6f5c1c5a3c0a4d3fe712a597965/WindowsFirewallHelper/FirewallAPIv2/Firewall.cs#L137
This condition throws an exception if the protocol is not TCP and is UDP.
I believe the right condition is not TCP and not UDP.
True, thanks for reporting this. It seems that I missed a ! there.
!
Should be fixed with the latest release.
https://github.com/falahati/WindowsFirewallHelper/blob/e17c78a84130f6f5c1c5a3c0a4d3fe712a597965/WindowsFirewallHelper/FirewallAPIv2/Firewall.cs#L137
This condition throws an exception if the protocol is not TCP and is UDP.
I believe the right condition is not TCP and not UDP.