find SSU2 address by address type

This commit is contained in:
orignal 2022-03-28 18:03:22 -04:00
parent 990906c57f
commit 30b83414ef
3 changed files with 5 additions and 5 deletions

View file

@ -384,7 +384,7 @@ namespace transport
return false;
}
SetRemoteIdentity (ri->GetRouterIdentity ());
m_Address = ri->GetSSU2AddressWithStaticKey (S);
m_Address = ri->GetSSU2AddressWithStaticKey (S, m_RemoteEndpoint.address ().is_v6 ());
if (!m_Address)
{
LogPrint (eLogError, "SSU2: No SSU2 address with static key found in SessionConfirmed");