DnsServerApp: app stop key command changed.

This commit is contained in:
Shreyas Zare
2017-11-17 18:49:30 +05:30
parent bc8d1e5734
commit f6ed99e567

View File

@@ -37,10 +37,17 @@ namespace DnsServerApp
Console.WriteLine("Technitium DNS Server was started successfully.");
Console.WriteLine("Using config folder: " + service.ConfigFolder);
Console.WriteLine("");
Console.WriteLine("Note: Open http://localhost:" + service.WebServicePort + " in web browser to access web console.");
Console.WriteLine("Note: Open http://localhost:" + service.WebServicePort + "/ in web browser to access web console.");
Console.WriteLine("");
Console.WriteLine("Press ENTER key to stop...");
Console.ReadLine();
Console.WriteLine("Press [CTRL + X] to stop...");
while (true)
{
ConsoleKeyInfo key = Console.ReadKey(true);
if (key.Modifiers == ConsoleModifiers.Control && key.Key == ConsoleKey.X)
break;
}
service.Stop();
Console.WriteLine("Technitium DNS Server was stopped successfully.");