Browse Source

check if established peer test session has the same address type

pull/2035/head
orignal 9 months ago
parent
commit
6ba42a0912
  1. 2
      libi2pd/SSU2.cpp

2
libi2pd/SSU2.cpp

@ -858,7 +858,7 @@ namespace transport @@ -858,7 +858,7 @@ namespace transport
{
auto remoteAddr = it->second->GetAddress ();
if (!remoteAddr || !remoteAddr->IsPeerTesting () ||
(v4 && !addr->IsV4 ()) || (!v4 && !addr->IsV6 ())) return false;
(v4 && !remoteAddr->IsV4 ()) || (!v4 && !remoteAddr->IsV6 ())) return false;
auto s = it->second;
if (s->IsEstablished ())
GetService ().post ([s]() { s->SendPeerTest (); });

Loading…
Cancel
Save