ask for protocol instead of copy address in ut_pex_peer_store::was_introduced_by

This commit is contained in:
Alden Torres 2018-03-06 13:54:34 -05:00 committed by Arvid Norberg
parent 94498072e1
commit 1f86beb253
1 changed files with 1 additions and 1 deletions

View File

@ -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());