forked from premiere/premiere-libtorrent
fixed bug in http_connection when binding to a particular IP
This commit is contained in:
parent
f722731799
commit
8d6c1527ae
|
@ -44,6 +44,7 @@ release 0.14.2
|
||||||
* added missing export directives to lazy_entry
|
* added missing export directives to lazy_entry
|
||||||
* fixed disk cache expiry settings bug (if changed, it would be set
|
* fixed disk cache expiry settings bug (if changed, it would be set
|
||||||
to the cache size)
|
to the cache size)
|
||||||
|
* fixed bug in http_connection when binding to a particular IP
|
||||||
|
|
||||||
release 0.14.1
|
release 0.14.1
|
||||||
|
|
||||||
|
|
|
@ -184,6 +184,7 @@ void http_connection::start(std::string const& hostname, std::string const& port
|
||||||
if (m_bind_addr != address_v4::any())
|
if (m_bind_addr != address_v4::any())
|
||||||
{
|
{
|
||||||
error_code ec;
|
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);
|
m_sock.bind(tcp::endpoint(m_bind_addr, 0), ec);
|
||||||
if (ec)
|
if (ec)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue