mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 03:37:49 +02:00
keep own RouterInfo in netdb
This commit is contained in:
parent
2c129b6d39
commit
41bfc7899d
4 changed files with 34 additions and 6 deletions
|
@ -262,6 +262,12 @@ namespace i2p
|
|||
if (!router) // we send own RouterInfo
|
||||
router = context.GetSharedRouterInfo ();
|
||||
|
||||
if (!router->GetBuffer ())
|
||||
{
|
||||
LogPrint (eLogError, "I2NP: Invalid RouterInfo buffer for DatabaseStore");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
auto m = NewI2NPShortMessage ();
|
||||
uint8_t * payload = m->GetPayload ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue