mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
set best compression for RouterInfo
This commit is contained in:
@@ -250,6 +250,7 @@ namespace i2p
|
||||
buf += 2;
|
||||
m->len += (buf - payload); // payload size
|
||||
i2p::data::GzipDeflator deflator;
|
||||
deflator.SetCompressionLevel (Z_BEST_COMPRESSION);
|
||||
size_t size = deflator.Deflate (router->GetBuffer (), router->GetBufferLen (), buf, m->maxLen -m->len);
|
||||
if (size)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user