Browse Source

extract correct endpoint from peer test msg 2

pull/1774/head
orignal 2 years ago
parent
commit
fbb961b43c
  1. 2
      libi2pd/SSU2Session.cpp

2
libi2pd/SSU2Session.cpp

@ -1596,7 +1596,7 @@ namespace transport
{ {
boost::asio::ip::udp::endpoint ep; boost::asio::ip::udp::endpoint ep;
std::shared_ptr<const i2p::data::RouterInfo::Address> addr; std::shared_ptr<const i2p::data::RouterInfo::Address> addr;
if (ExtractEndpoint (buf + offset + 9, len - offset - 9, ep)) if (ExtractEndpoint (buf + offset + 10, asz, ep))
addr = r->GetSSU2Address (ep.address ().is_v4 ()); addr = r->GetSSU2Address (ep.address ().is_v4 ());
if (addr && m_Server.IsSupported (ep.address ())) if (addr && m_Server.IsSupported (ep.address ()))
{ {

Loading…
Cancel
Save