fix listen_failed_alert socket_type report bug
This commit is contained in:
parent
b7d5c1705d
commit
6579ae1994
|
@ -1631,6 +1631,11 @@ namespace aux {
|
||||||
}
|
}
|
||||||
} // force-proxy mode
|
} // force-proxy mode
|
||||||
|
|
||||||
|
socket_type_t const udp_sock_type
|
||||||
|
= (flags & open_ssl_socket)
|
||||||
|
? socket_type_t::utp_ssl
|
||||||
|
: socket_type_t::udp;
|
||||||
|
|
||||||
ret.udp_sock = std::make_shared<udp_socket>(m_io_service);
|
ret.udp_sock = std::make_shared<udp_socket>(m_io_service);
|
||||||
#if TORRENT_HAS_BINDTODEVICE
|
#if TORRENT_HAS_BINDTODEVICE
|
||||||
if (!device.empty())
|
if (!device.empty())
|
||||||
|
@ -1650,7 +1655,7 @@ namespace aux {
|
||||||
if (m_alerts.should_post<listen_failed_alert>())
|
if (m_alerts.should_post<listen_failed_alert>())
|
||||||
{
|
{
|
||||||
m_alerts.emplace_alert<listen_failed_alert>(device, bind_ep
|
m_alerts.emplace_alert<listen_failed_alert>(device, bind_ep
|
||||||
, last_op, ec, sock_type);
|
, last_op, ec, udp_sock_type);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -1670,11 +1675,6 @@ namespace aux {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
socket_type_t const udp_sock_type
|
|
||||||
= (flags & open_ssl_socket)
|
|
||||||
? socket_type_t::utp_ssl
|
|
||||||
: socket_type_t::udp;
|
|
||||||
|
|
||||||
if (m_alerts.should_post<listen_failed_alert>())
|
if (m_alerts.should_post<listen_failed_alert>())
|
||||||
m_alerts.emplace_alert<listen_failed_alert>(device
|
m_alerts.emplace_alert<listen_failed_alert>(device
|
||||||
, bind_ep, last_op, ec, udp_sock_type);
|
, bind_ep, last_op, ec, udp_sock_type);
|
||||||
|
|
Loading…
Reference in New Issue