mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-11-04 08:17:30 +00:00
fixed #1256 I2NP messages up to 64K
This commit is contained in:
1 parent
9e12cff317
commit
a97300f8be
3 files changed
+13
-3
No files matched your search
@@ -36,7 +36,7 @@ namespace i2p
|
||||
|
||||
std::shared_ptr<I2NPMessage> NewI2NPMessage (size_t len)
|
||||
{
|
||||
return (len < I2NP_MAX_SHORT_MESSAGE_SIZE/2) ? NewI2NPShortMessage () : NewI2NPMessage ();
|
||||
return (len < I2NP_MAX_SHORT_MESSAGE_SIZE - I2NP_HEADER_SIZE - 2) ? NewI2NPShortMessage () : NewI2NPMessage ();
|
||||
}
|
||||
|
||||
void I2NPMessage::FillI2NPMessageHeader (I2NPMessageType msgType, uint32_t replyMsgID)
|
||||
|
||||
Reference in new issue
Block a user