diff options
Diffstat (limited to 'libtorrent/src/http_connection.cpp')
-rw-r--r-- | libtorrent/src/http_connection.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libtorrent/src/http_connection.cpp b/libtorrent/src/http_connection.cpp index 8f9104548..4f752ba9f 100644 --- a/libtorrent/src/http_connection.cpp +++ b/libtorrent/src/http_connection.cpp @@ -181,6 +181,7 @@ void http_connection::start(std::string const& hostname, std::string const& port if (m_bind_addr != address_v4::any()) { error_code ec; + m_sock.open(m_bind_addr.is_v4()?tcp::v4():tcp::v6(), ec); m_sock.bind(tcp::endpoint(m_bind_addr, 0), ec); if (ec) { |