correct message type for ShortTunnelBuild

This commit is contained in:
orignal 2021-07-20 14:35:02 -04:00
parent db9223b0d5
commit bdc1107c96
2 changed files with 9 additions and 6 deletions
libi2pd

View file

@ -88,7 +88,7 @@ namespace tunnel
}
hop = hop->prev;
}
msg->FillI2NPMessageHeader (eI2NPVariableTunnelBuild);
msg->FillI2NPMessageHeader (m_Config->IsShort () ? eI2NPShortTunnelBuild : eI2NPVariableTunnelBuild);
// send message
if (outboundTunnel)
@ -99,7 +99,7 @@ namespace tunnel
if (ident)
{
auto msg1 = i2p::garlic::WrapECIESX25519MessageForRouter (msg, ident->GetEncryptionPublicKey ());
if (msg1) msg = msg;
if (msg1) msg = msg1;
}
}
outboundTunnel->SendTunnelDataMsg (GetNextIdentHash (), 0, msg);