I'm encountering an issue with the Windows Defender Firewall every time I compile and run my Go program. It seems that the program's use of sockets is triggering the firewall each time a new version of the program is compiled and run as a new .exe
file.
Here is what's currently happening :
- I make some changes to my code
- I compile, thus a new
.exe
is created - Run the new
.exe
- I'm getting annoyed by the Windows Security Alert popup
From my understanding, we can't set up a firewall rule exception for a whole folder, but is that really the case? I could simply disable the firewall but that's not really a good idea.