Skip to content

Commit 3aaacf9

Browse files
committed
Fixed a bug with one of Firewallv2 CreateApplicationRule overloads always failing
1 parent 237708e commit 3aaacf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WindowsFirewallHelper/FirewallAPIv2/Firewall.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public IRule CreateApplicationRule(
9494
FirewallAction action,
9595
string filename)
9696
{
97-
return CreateApplicationRule(profiles, name, action, filename, FirewallProtocol.Any);
97+
return CreateApplicationRule(profiles, name, action, filename, FirewallProtocol.TCP);
9898
}
9999

100100
/// <inheritdoc />

0 commit comments

Comments
 (0)