mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
max payload is always 1730
This commit is contained in:
parent
ec4e17f75c
commit
d48db501e0
@ -505,7 +505,7 @@ namespace stream
|
||||
memset (signature, 0, signatureLen); // zeroes for now
|
||||
size += signatureLen; // signature
|
||||
htobe16buf (optionsSize, packet + size - 2 - optionsSize); // actual options size
|
||||
size += m_SendBuffer.Get (packet + size, STREAMING_MTU - size); // payload
|
||||
size += m_SendBuffer.Get (packet + size, STREAMING_MTU); // payload
|
||||
m_LocalDestination.GetOwner ()->Sign (packet, size, signature);
|
||||
}
|
||||
else
|
||||
@ -515,7 +515,7 @@ namespace stream
|
||||
size += 2; // flags
|
||||
htobuf16 (packet + size, 0); // no options
|
||||
size += 2; // options size
|
||||
size += m_SendBuffer.Get(packet + size, STREAMING_MTU - size); // payload
|
||||
size += m_SendBuffer.Get(packet + size, STREAMING_MTU); // payload
|
||||
}
|
||||
p->len = size;
|
||||
packets.push_back (p);
|
||||
|
Loading…
Reference in New Issue
Block a user