don't insert garlic tag for short tunnel build reply if the same router

This commit is contained in:
orignal 2021-07-28 21:14:03 -04:00
parent f8623b6121
commit 7a55d1fc38

View File

@ -106,7 +106,8 @@ namespace tunnel
}
else
{
if (m_Config->IsShort () && m_Config->GetLastHop ())
if (m_Config->IsShort () && m_Config->GetLastHop () &&
m_Config->GetLastHop ()->ident->GetIdentHash () != m_Config->GetLastHop ()->nextIdent)
{
// add garlic key/tag for reply
uint8_t key[32];