set max compression for SessionConfirmed

This commit is contained in:
orignal 2022-07-12 10:50:21 -04:00
parent b0d962b49a
commit f1d3d6a7b5

View File

@ -1885,6 +1885,7 @@ namespace transport
else
{
i2p::data::GzipDeflator deflator;
deflator.SetCompressionLevel (9);
size = deflator.Deflate (r->GetBuffer (), r->GetBufferLen (), buf + 5, len - 5);
if (!size) return 0; // doesn't fit
buf[3] = SSU2_ROUTER_INFO_FLAG_GZIP; // flag