forked from premiere/premiere-libtorrent
merged udp socket fallback fix from RC_1_0
This commit is contained in:
parent
fb34607313
commit
788e41c3bb
|
@ -73,6 +73,7 @@
|
|||
* added support for hashing pieces in multiple threads
|
||||
|
||||
|
||||
* fixed falling back to sending UDP packets direct when socks proxy fails
|
||||
* fixed total_wanted bug (when setting file priorities in add_torrent_params)
|
||||
|
||||
1.0.6 release
|
||||
|
|
|
@ -932,6 +932,13 @@ void udp_socket::on_connected(error_code const& e)
|
|||
|
||||
if (e)
|
||||
{
|
||||
// we failed to connect to the proxy, if we don't have force_proxy set,
|
||||
// drain the queue over the UDP socket
|
||||
if (!m_force_proxy)
|
||||
{
|
||||
drain_queue();
|
||||
}
|
||||
|
||||
call_handler(e, udp::endpoint(), 0, 0);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue