ask for protocol instead of copy address in ut_pex_peer_store::was_introduced_by
This commit is contained in:
parent
94498072e1
commit
1f86beb253
|
@ -123,7 +123,7 @@ namespace {
|
|||
bool ut_pex_peer_store::was_introduced_by(tcp::endpoint const &ep)
|
||||
{
|
||||
#if TORRENT_USE_IPV6
|
||||
if (ep.address().is_v4())
|
||||
if (ep.protocol() == tcp::v4())
|
||||
{
|
||||
#endif
|
||||
peers4_t::value_type const v(ep.address().to_v4().to_bytes(), ep.port());
|
||||
|
|
Loading…
Reference in New Issue