set best compression for RouterInfo

This commit is contained in:
orignal 2020-05-03 09:27:17 -04:00
parent 1eead0e885
commit dff510c181
2 changed files with 5 additions and 1 deletions

View file

@ -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)
{