don't check destination if first packet comes from ECIESx25519 session

This commit is contained in:
orignal 2025-06-21 22:07:59 -04:00
parent 6b519c36c5
commit 9efdc230a9

View file

@ -187,7 +187,7 @@ namespace stream
if (!m_SendStreamID) if (!m_SendStreamID)
{ {
m_SendStreamID = packet->GetReceiveStreamID (); m_SendStreamID = packet->GetReceiveStreamID ();
if (!m_RemoteIdentity && packet->GetNACKCount () == 8 && // first incoming packet if (!m_RemoteIdentity && !packet->from && packet->GetNACKCount () == 8 && // first incoming packet
memcmp (packet->GetNACKs (), m_LocalDestination.GetOwner ()->GetIdentHash (), 32)) memcmp (packet->GetNACKs (), m_LocalDestination.GetOwner ()->GetIdentHash (), 32))
{ {
LogPrint (eLogWarning, "Streaming: Destination mismatch for ", m_LocalDestination.GetOwner ()->GetIdentHash ().ToBase32 ()); LogPrint (eLogWarning, "Streaming: Destination mismatch for ", m_LocalDestination.GetOwner ()->GetIdentHash ().ToBase32 ());