This commit is contained in:
JustArchi
2017-08-23 01:17:43 +02:00
parent 5c121bee75
commit 1d7dbe3791

View File

@@ -45,6 +45,14 @@ namespace ArchiSteamFarm {
return;
}
switch (host) {
case "0.0.0.0":
case "::":
// Silently map INADDR_ANY to match HttpListener expectations
host = "*";
break;
}
string url = "http://" + host + ":" + port + "/" + nameof(IPC) + "/";
HttpListener.Prefixes.Add(url);
}