mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-21 14:51:48 +02:00
correct message type for ShortTunnelBuild
This commit is contained in:
parent
db9223b0d5
commit
bdc1107c96
2 changed files with 9 additions and 6 deletions
libi2pd
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue