mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
don't encrypt ShortTunnelBuild and ShortTunnelBuildReply if on the same router
This commit is contained in:
parent
e68cff8bba
commit
9a3c22f47d
2 changed files with 23 additions and 9 deletions
|
@ -96,7 +96,7 @@ namespace tunnel
|
|||
if (m_Config->IsShort ())
|
||||
{
|
||||
auto ident = m_Config->GetFirstHop () ? m_Config->GetFirstHop ()->ident : nullptr;
|
||||
if (ident)
|
||||
if (ident && ident->GetIdentHash () != outboundTunnel->GetNextIdentHash ()) // don't encrypt if IBGW = OBEP
|
||||
{
|
||||
auto msg1 = i2p::garlic::WrapECIESX25519MessageForRouter (msg, ident->GetEncryptionPublicKey ());
|
||||
if (msg1) msg = msg1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue