Browse Source

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

pull/1677/head
orignal 3 years ago
parent
commit
7a55d1fc38
  1. 3
      libi2pd/Tunnel.cpp

3
libi2pd/Tunnel.cpp

@ -106,7 +106,8 @@ namespace tunnel @@ -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];

Loading…
Cancel
Save