0
0
mirror of https://github.com/monero-project/kovri synced 2025-10-06 00:32:51 +02:00

SSUSession: get either IPv4/6 intro key from remote

This commit is contained in:
anonimal
2018-07-30 07:14:19 +00:00
parent 1b26e587fc
commit 179ee73d20

View File

@@ -1655,7 +1655,7 @@ const std::uint8_t* SSUSession::GetIntroKey() const
{
LOG(debug) << "SSUSession: " << __func__ << ": using remote's key";
auto* const address =
m_RemoteRouter->GetAddress(m_RemoteRouter->HasV6(), Transport::SSU);
m_RemoteRouter->GetAnyAddress(m_RemoteRouter->HasV6(), Transport::SSU);
assert(address); // TODO(anonimal): SSU should be guaranteed
return address->key;
}