shalzuth/LostArkLogger

Issue with adding program to firewall

Closed this issue · 2 comments

Program already exist in Win11 firewall whitelist but the "This program needs to be added to Firewall!" error message keeps popping up when launching
Screenshot_5
Screenshot_6
.

same. my firewall is not even on to begin with.

You need to create a rule that allowes acces to Public Networks
The code checking can be found here:

if (firewallRule.Name != null && firewallRule.ApplicationName?.Equals(Process.GetCurrentProcess().MainModule.FileName, StringComparison.OrdinalIgnoreCase) == true)

if ((firewallRule.Profiles & (int)NET_FW_PROFILE_TYPE2_.NET_FW_PROFILE2_PUBLIC) > 0 && firewallRule.Action == NET_FW_ACTION_.NET_FW_ACTION_ALLOW) return true;