mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
create different I2NP tunnel messages for endpoint and non-endpoint
This commit is contained in:
parent
12d6f03dc9
commit
25f63ac22a
6 changed files with 25 additions and 17 deletions
|
@ -234,7 +234,7 @@ namespace tunnel
|
|||
void InboundTunnel::HandleTunnelDataMsg (std::shared_ptr<const I2NPMessage> msg)
|
||||
{
|
||||
if (IsFailed ()) SetState (eTunnelStateEstablished); // incoming messages means a tunnel is alive
|
||||
auto newMsg = CreateEmptyTunnelDataMsg ();
|
||||
auto newMsg = CreateEmptyTunnelDataMsg (true);
|
||||
EncryptTunnelMsg (msg, newMsg);
|
||||
newMsg->from = shared_from_this ();
|
||||
m_Endpoint.HandleDecryptedTunnelDataMsg (newMsg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue