fixed bug in http_connection when binding to a particular IP

This commit is contained in:
Arvid Norberg 2009-01-19 22:17:48 +00:00
parent f722731799
commit 8d6c1527ae
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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)
{