mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
pass I2NP as shared_ptr to netDB
This commit is contained in:
@@ -453,8 +453,8 @@ namespace tunnel
|
||||
// transit DatabaseStore my contain new/updated RI
|
||||
// or DatabaseSearchReply with new routers
|
||||
auto ds = NewI2NPMessage ();
|
||||
*ds = *msg;
|
||||
i2p::data::netdb.PostI2NPMsg (ds);
|
||||
*ds = *msg; // TODO: don't copy once msg is shared_ptr
|
||||
i2p::data::netdb.PostI2NPMsg (ToSharedI2NPMessage (ds));
|
||||
}
|
||||
tunnel->SendTunnelDataMsg (msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user