1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 16:34:13 +00:00

extract correct endpoint from peer test msg 2

This commit is contained in:
orignal 2022-07-07 13:23:51 -04:00
parent fa9c174264
commit fbb961b43c

View File

@ -1596,7 +1596,7 @@ namespace transport
{
boost::asio::ip::udp::endpoint ep;
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 ());
if (addr && m_Server.IsSupported (ep.address ()))
{