mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
pass I2NP as shared_ptr to netDB
This commit is contained in:
parent
465945f8a8
commit
d65257c7b0
5 changed files with 13 additions and 13 deletions
|
@ -267,8 +267,8 @@ namespace tunnel
|
|||
{
|
||||
// catch RI or reply with new list of routers
|
||||
auto ds = NewI2NPShortMessage ();
|
||||
*ds = *(msg.data);
|
||||
i2p::data::netdb.PostI2NPMsg (ds);
|
||||
*ds = *(msg.data); // TODO: don't copy once msg.data is shared_ptr
|
||||
i2p::data::netdb.PostI2NPMsg (ToSharedI2NPMessage (ds));
|
||||
}
|
||||
i2p::transport::transports.SendMessage (msg.hash, msg.data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue