no need to close and re-open the listen socket when starting the DHT. Report the actual port we ended up listening on if the system chose one. don't try to listen on i2p

This commit is contained in:
Arvid Norberg
2011-03-07 07:02:30 +00:00
parent 9ecfbd17e6
commit 5431d86779
3 changed files with 8 additions and 7 deletions

View File

@@ -1152,7 +1152,7 @@ int main(int argc, char* argv[])
ses.set_proxy(ps);
ses.listen_on(std::make_pair(listen_port, listen_port + 10)
ses.listen_on(std::make_pair(listen_port, listen_port)
, ec, bind_to_interface.c_str());
if (ec)
{