Do not bind HTTPServer to the "any" address (#235).

This commit is contained in:
EinMByte 2015-07-27 12:13:05 +02:00
parent 7d38b1a9b9
commit a7da2423ce
4 changed files with 8 additions and 4 deletions

View file

@ -106,7 +106,10 @@ namespace i2p
StartLog (""); // write to stdout
}
d.httpServer = new i2p::util::HTTPServer(i2p::util::config::GetArg("-httpport", 7070));
d.httpServer = new i2p::util::HTTPServer(
i2p::util::config::GetArg("-httpaddress", "127.0.0.1"),
i2p::util::config::GetArg("-httpport", 7070)
);
d.httpServer->Start();
LogPrint("HTTP Server started");
i2p::data::netdb.Start();