mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
set best compression for RouterInfo
This commit is contained in:
parent
1eead0e885
commit
dff510c181
2 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue