From 8d6c1527ae4157bc85381ccccd23d5259fef3552 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 19 Jan 2009 22:17:48 +0000 Subject: [PATCH] fixed bug in http_connection when binding to a particular IP --- ChangeLog | 1 + src/http_connection.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index 99dcd3bc5..6d1b98c2a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -44,6 +44,7 @@ release 0.14.2 * added missing export directives to lazy_entry * fixed disk cache expiry settings bug (if changed, it would be set to the cache size) + * fixed bug in http_connection when binding to a particular IP release 0.14.1 diff --git a/src/http_connection.cpp b/src/http_connection.cpp index 32a978168..9dec182a7 100644 --- a/src/http_connection.cpp +++ b/src/http_connection.cpp @@ -184,6 +184,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) {