mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
increased I2NP max message size to 32K and check if fragmented message exceeds it
This commit is contained in:
@@ -230,9 +230,9 @@ namespace i2p
|
||||
else
|
||||
{
|
||||
// existing session not found. create new
|
||||
// try NTCP first
|
||||
// try NTCP first if message size < 16K
|
||||
auto address = r->GetNTCPAddress ();
|
||||
if (address && !r->UsesIntroducer () && !r->IsUnreachable ())
|
||||
if (address && !r->UsesIntroducer () && !r->IsUnreachable () && msg->GetLength () < i2p::ntcp::NTCP_MAX_MESSAGE_SIZE)
|
||||
{
|
||||
auto s = new i2p::ntcp::NTCPClient (m_Service, address->host, address->port, *r);
|
||||
AddNTCPSession (s);
|
||||
|
||||
Reference in New Issue
Block a user