From ec882b51872ec4d821a8bf3c0cc7694676730a30 Mon Sep 17 00:00:00 2001 From: Madpeter Date: Tue, 13 Oct 2020 16:04:26 +0100 Subject: [PATCH] fixs http url loading --- CLI/HttpServer/SecondBotHttpServer.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CLI/HttpServer/SecondBotHttpServer.cs b/CLI/HttpServer/SecondBotHttpServer.cs index 2bb9031..33ff3a5 100644 --- a/CLI/HttpServer/SecondBotHttpServer.cs +++ b/CLI/HttpServer/SecondBotHttpServer.cs @@ -33,6 +33,7 @@ namespace BetterSecondBot.HttpServer protected JsonConfig Config; public JsonConfig GetConfig { get { return Config; } } protected HTTPCommandsInterface post_controler; + protected string url = ""; public bool ShutdownHTTP { get; set; } public bool HTTPCnCmode { get; set; } @@ -78,6 +79,7 @@ namespace BetterSecondBot.HttpServer Config = setConfig; Bot = LinkBot; int port = Math.Abs(Config.Http_Port); + url = Config.Http_Host; if (Config.Http_Host == "docker") { url = "http://*:" + port.ToString() + "/";