diff --git a/src/session_impl.cpp b/src/session_impl.cpp index b3bd6f374..d1d3739cb 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -5823,7 +5823,7 @@ namespace aux { for (auto const& addr : addresses) { #if !TORRENT_USE_IPV6 - if (!i->is_v4()) continue; + if (!addr.is_v4()) continue; #endif // router nodes should be added before the DHT is started (and bootstrapped) udp::endpoint ep(addr, std::uint16_t(port));