From 1f86beb2535d4db6da76cfd761197b6b6815e5cb Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Tue, 6 Mar 2018 13:54:34 -0500 Subject: [PATCH] ask for protocol instead of copy address in ut_pex_peer_store::was_introduced_by --- src/bt_peer_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());