Modify some features
This commit is contained in:
parent
ec53b14ec0
commit
7637140aad
6 changed files with 20 additions and 5 deletions
|
@ -59,7 +59,10 @@ namespace Bot.WebHookServer
|
|||
{
|
||||
listener = new HttpListener();
|
||||
MHEx = MH.callbacks;
|
||||
listener.Prefixes.Add($"https://*:{MainConfiguration.Instance.WebServerPort}/");
|
||||
if (MainConfiguration.Instance.UseSSL)
|
||||
listener.Prefixes.Add($"https://*:{MainConfiguration.Instance.WebServerPort}/");
|
||||
else
|
||||
listener.Prefixes.Add($"http://*:{MainConfiguration.Instance.WebServerPort}/");
|
||||
|
||||
listener.Start();
|
||||
var hc = new HookCmds();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue