fix tracker connection bind issue for IPv6 trackers

This commit is contained in:
arvidn 2018-01-13 15:57:14 +01:00 committed by Arvid Norberg
parent a9085db760
commit a67eb2f059
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,5 @@
* fix tracker connection bind issue for IPv6 trackers
* fix error handling of some merkle torrents
* fix error handling of unsupported hard-links

View File

@ -1332,7 +1332,11 @@ namespace aux {
}
#endif
if (!req.bind_ip) req.bind_ip = m_listen_interface.address();
if (!req.bind_ip
&& m_listen_interface.address() != address_v4::any())
{
req.bind_ip = m_listen_interface.address();
}
m_tracker_manager.queue_request(get_io_service(), req, c);
}