don't assert on passing in a null pointer for listen interface, just listen on INADDR_ANY

This commit is contained in:
Arvid Norberg 2011-02-19 21:16:32 +00:00
parent bd1ef5397c
commit 3a89bcf6ff
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ namespace aux {
m_next_lsd_torrent = m_torrents.begin();
m_next_connect_torrent = m_torrents.begin();
TORRENT_ASSERT_VAL(listen_interface, listen_interface);
if (!listen_interface) listen_interface = "0.0.0.0";
m_listen_interface = tcp::endpoint(address::from_string(listen_interface, ec), listen_port_range.first);
TORRENT_ASSERT_VAL(!ec, ec);