fix UDP ASSOCIATE SOCKS5 connection retry

This commit is contained in:
arvidn 2020-04-13 13:10:04 +02:00 committed by Arvid Norberg
parent 05e6501f16
commit ebc2bfc4dd
2 changed files with 3 additions and 1 deletions

View File

@ -1837,7 +1837,7 @@ namespace {
if (m_settings.get_int(settings_pack::proxy_type) != settings_pack::none)
{
// 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
// at random
int const port = m_listen_interfaces.empty()

View File

@ -922,6 +922,8 @@ void socks5::hung_up(error_code const& e)
void socks5::retry_socks_connect(error_code const& e)
{
if (e) return;
error_code ignore;
m_socks5_sock.close(ignore);
start(m_proxy_settings);
}