mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
don't send PeerTest msg 5 if address is not supported
This commit is contained in:
parent
6b3d7372ae
commit
578a15bbe5
1 changed files with 1 additions and 1 deletions
|
@ -1512,7 +1512,7 @@ namespace transport
|
||||||
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 + 9, len - offset - 9, ep))
|
||||||
addr = r->GetSSU2Address (ep.address ().is_v4 ());
|
addr = r->GetSSU2Address (ep.address ().is_v4 ());
|
||||||
if (addr)
|
if (addr && m_Server.IsSupported (ep.address ()))
|
||||||
{
|
{
|
||||||
// send msg 5 to Alice
|
// send msg 5 to Alice
|
||||||
auto session = std::make_shared<SSU2Session> (m_Server, r, addr);
|
auto session = std::make_shared<SSU2Session> (m_Server, r, addr);
|
||||||
|
|
Loading…
Add table
Reference in a new issue