diff --git a/include/libtorrent/kademlia/direct_request.hpp b/include/libtorrent/kademlia/direct_request.hpp index d461ad9a4..b145193e8 100644 --- a/include/libtorrent/kademlia/direct_request.hpp +++ b/include/libtorrent/kademlia/direct_request.hpp @@ -83,16 +83,8 @@ struct direct_observer : observer if (flags & flag_done) return; flags |= flag_done; bdecode_node e; - if (flags & flag_ipv6_address) - { - msg m(e, target_ep()); - static_cast(algorithm())->invoke_cb(m); - } - else - { - msg m(e, target_ep()); - static_cast(algorithm())->invoke_cb(m); - } + msg m(e, target_ep()); + static_cast(algorithm())->invoke_cb(m); } };