mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
eliminate extra parsing of RouterInfo coming as RouterInfo block
This commit is contained in:
parent
e0af7b077f
commit
855fd4d471
2 changed files with 25 additions and 20 deletions
|
@ -955,9 +955,8 @@ namespace transport
|
|||
break;
|
||||
case eNTCP2BlkRouterInfo:
|
||||
{
|
||||
LogPrint (eLogDebug, "NTCP2: RouterInfo flag=", (int)frame[offset]);
|
||||
i2p::data::RouterInfo ri (frame + offset + 1, size - 1);
|
||||
auto newRi = i2p::data::netdb.AddRouterInfo (ri.GetBuffer (), ri.GetBufferLen ());
|
||||
LogPrint (eLogDebug, "NTCP2: RouterInfo flag=", (int)frame[offset]);
|
||||
auto newRi = i2p::data::netdb.AddRouterInfo (frame + offset + 1, size - 1);
|
||||
if (newRi)
|
||||
{
|
||||
auto remoteIdentity = GetRemoteIdentity ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue