mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-12-06 19:26:23 +01:00
check if established peer test session has the same address type
This commit is contained in:
+1
-1
@@ -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 (); });
|
||||
|
||||
Reference in New Issue
Block a user