mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-13 01:20:22 +03:00
no compression for RouterInfo gzip
This commit is contained in:
parent
e5901dad91
commit
153aaa6d21
@ -249,9 +249,7 @@ namespace i2p
|
|||||||
uint8_t * sizePtr = buf;
|
uint8_t * sizePtr = buf;
|
||||||
buf += 2;
|
buf += 2;
|
||||||
m->len += (buf - payload); // payload size
|
m->len += (buf - payload); // payload size
|
||||||
i2p::data::GzipDeflator deflator;
|
size_t size = i2p::data::GzipNoCompression (router->GetBuffer (), router->GetBufferLen (), buf, m->maxLen -m->len);
|
||||||
deflator.SetCompressionLevel (Z_BEST_COMPRESSION);
|
|
||||||
size_t size = deflator.Deflate (router->GetBuffer (), router->GetBufferLen (), buf, m->maxLen -m->len);
|
|
||||||
if (size)
|
if (size)
|
||||||
{
|
{
|
||||||
htobe16buf (sizePtr, size); // size
|
htobe16buf (sizePtr, size); // size
|
||||||
|
Loading…
Reference in New Issue
Block a user