diff --git a/src/bt_peer_connection.cpp b/src/bt_peer_connection.cpp index 61f7c4f6d..76038812b 100644 --- a/src/bt_peer_connection.cpp +++ b/src/bt_peer_connection.cpp @@ -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());