mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2025-12-22 09:29:50 +00:00
minor changes
This commit is contained in:
@@ -32,11 +32,11 @@ namespace DnsServerApp
|
|||||||
if (args.Length == 1)
|
if (args.Length == 1)
|
||||||
configFolder = args[0];
|
configFolder = args[0];
|
||||||
|
|
||||||
DnsWebService service = null;
|
WebService service = null;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
service = new DnsWebService(configFolder, new Uri("https://go.technitium.com/?id=21"));
|
service = new WebService(configFolder, new Uri("https://go.technitium.com/?id=21"));
|
||||||
service.Start();
|
service.Start();
|
||||||
|
|
||||||
Console.WriteLine("Technitium DNS Server was started successfully.");
|
Console.WriteLine("Technitium DNS Server was started successfully.");
|
||||||
|
|||||||
@@ -32,11 +32,11 @@ namespace DnsServerApp
|
|||||||
if (args.Length == 1)
|
if (args.Length == 1)
|
||||||
configFolder = args[0];
|
configFolder = args[0];
|
||||||
|
|
||||||
DnsWebService service = null;
|
WebService service = null;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
service = new DnsWebService(configFolder, new Uri("https://go.technitium.com/?id=20"));
|
service = new WebService(configFolder, new Uri("https://go.technitium.com/?id=20"));
|
||||||
service.Start();
|
service.Start();
|
||||||
|
|
||||||
Console.WriteLine("Technitium DNS Server was started successfully.");
|
Console.WriteLine("Technitium DNS Server was started successfully.");
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ namespace DnsService
|
|||||||
{
|
{
|
||||||
public partial class DnsService : ServiceBase
|
public partial class DnsService : ServiceBase
|
||||||
{
|
{
|
||||||
DnsWebService _service;
|
WebService _service;
|
||||||
|
|
||||||
public DnsService()
|
public DnsService()
|
||||||
{
|
{
|
||||||
@@ -34,7 +34,7 @@ namespace DnsService
|
|||||||
|
|
||||||
protected override void OnStart(string[] args)
|
protected override void OnStart(string[] args)
|
||||||
{
|
{
|
||||||
_service = new DnsWebService(null, new Uri("https://go.technitium.com/?id=22"));
|
_service = new WebService(null, new Uri("https://go.technitium.com/?id=22"));
|
||||||
_service.Start();
|
_service.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user