DnsServiceWorker: removed additional windows firewall rule for web console port since its not needed after replacing the web service to use kestrel.

This commit is contained in:
Shreyas Zare
2023-04-07 14:06:13 +05:30
parent 68167dc7e6
commit 0ec47624b8

View File

@@ -107,21 +107,6 @@ namespace DnsServerWindowsService
WindowsFirewall.AddRuleVista("Technitium DNS Server", "Allows incoming connection request to the DNS server.", FirewallAction.Allow, appPath, Protocol.ANY, null, null, null, null, InterfaceTypeFlags.All, true, Direction.Inbound, true);
//add web console rule
try
{
WindowsFirewall.RemoveRuleVista("Technitium DNS Server Web Console", "");
}
catch
{ }
try
{
WindowsFirewall.AddRuleVista("Technitium DNS Server Web Console", "Allows access to the DNS server web console.", FirewallAction.Allow, null, Protocol.TCP, _service.WebServiceHttpPort + ", " + _service.WebServiceTlsPort, null, null, null, InterfaceTypeFlags.All, true, Direction.Inbound, true);
}
catch
{ }
return true;
}
catch