mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2025-12-22 09:29:50 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user