You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var rule = FirewallManager.Instance.CreatePortRule(
ruleName,
FirewallAction.Allow,
(ushort)port,
udp ? FirewallProtocol.UDP : FirewallProtocol.TCP // this one will not kick in
);
//TODO Remove when lib is fixed
rule.Protocol = udp ? FirewallProtocol.UDP : FirewallProtocol.TCP;
Hello,
with this code :
IFirewallRule firewallRule = FirewallManager.Instance.CreatePortRule (@" "+ ruleName +" ", FirewallAction.Allow, port, FirewallProtocol.UDP);
the protocol is always in TCP.
See screenshot
Thanks
The text was updated successfully, but these errors were encountered: