Commit 8141f105 authored by mercury233's avatar mercury233

update http api to listen on all interfaces

parent 029d67e6
......@@ -82,7 +82,7 @@ namespace WindBot
using (HttpListener MainServer = new HttpListener())
{
MainServer.AuthenticationSchemes = AuthenticationSchemes.Anonymous;
MainServer.Prefixes.Add("http://127.0.0.1:" + ServerPort + "/");
MainServer.Prefixes.Add("http://+:" + ServerPort + "/");
MainServer.Start();
Logger.WriteLine("WindBot server start successed.");
Logger.WriteLine("HTTP GET http://127.0.0.1:" + ServerPort + "/?name=WindBot&host=127.0.0.1&port=7911 to call the bot.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment