1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 23:31:13 -05:00

rcon command formatted to work in linux

fixes to work with mono
This commit is contained in:
RaidMax
2018-04-07 14:49:00 -05:00
parent f61b693582
commit 0db93be91f
9 changed files with 30 additions and 73 deletions

View File

@ -1,4 +1,5 @@
using System.IO;
using System;
using System.IO;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
@ -15,12 +16,19 @@ namespace WebfrontCore
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.UseUrls(config["Web:Address"])
.Build();
host.Run();
if (!SharedLibrary.Utilities.IsRunningOnMono())
{
host.Run();
}
else
{
Console.ReadLine();
}
}
}
}