fix UDP ASSOCIATE SOCKS5 connection retry
This commit is contained in:
parent
05e6501f16
commit
ebc2bfc4dd
|
@ -1837,7 +1837,7 @@ namespace {
|
||||||
if (m_settings.get_int(settings_pack::proxy_type) != settings_pack::none)
|
if (m_settings.get_int(settings_pack::proxy_type) != settings_pack::none)
|
||||||
{
|
{
|
||||||
// we will be able to accept incoming connections over UDP. so use
|
// we will be able to accept incoming connections over UDP. so use
|
||||||
// one of the ports the user specified to use a constistent port
|
// one of the ports the user specified to use a consistent port
|
||||||
// across sessions. If the user did not specify any ports, pick one
|
// across sessions. If the user did not specify any ports, pick one
|
||||||
// at random
|
// at random
|
||||||
int const port = m_listen_interfaces.empty()
|
int const port = m_listen_interfaces.empty()
|
||||||
|
|
|
@ -922,6 +922,8 @@ void socks5::hung_up(error_code const& e)
|
||||||
void socks5::retry_socks_connect(error_code const& e)
|
void socks5::retry_socks_connect(error_code const& e)
|
||||||
{
|
{
|
||||||
if (e) return;
|
if (e) return;
|
||||||
|
error_code ignore;
|
||||||
|
m_socks5_sock.close(ignore);
|
||||||
start(m_proxy_settings);
|
start(m_proxy_settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue