mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:54:01 +01:00
reject peer test msg 2 if peer testing is not supported
This commit is contained in:
parent
b9773c88e4
commit
6ca266ff3b
|
@ -2180,7 +2180,7 @@ namespace transport
|
|||
std::shared_ptr<const i2p::data::RouterInfo::Address> addr;
|
||||
if (ExtractEndpoint (buf + offset + 10, asz, ep))
|
||||
addr = r->GetSSU2Address (ep.address ().is_v4 ());
|
||||
if (addr && m_Server.IsSupported (ep.address ()))
|
||||
if (addr && m_Server.IsSupported (ep.address ()) && addr->IsPeerTesting ())
|
||||
{
|
||||
// send msg 5 to Alice
|
||||
auto session = std::make_shared<SSU2Session> (m_Server, r, addr);
|
||||
|
|
Loading…
Reference in a new issue