From 3a89bcf6ffac188b6ea396650ff03e00f4b81ed3 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 19 Feb 2011 21:16:32 +0000 Subject: [PATCH] don't assert on passing in a null pointer for listen interface, just listen on INADDR_ANY --- src/session_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 4f68e0364..fd4c3ffda 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -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);