[gzip] do not initialize deflator if gzip is not enabled for tunnel

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2021-09-14 14:48:21 +03:00
parent e5c773a3eb
commit d2faec70be
No known key found for this signature in database
GPG key ID: 66F6C87B98EBCFE2
5 changed files with 60 additions and 46 deletions

View file

@ -312,7 +312,7 @@ namespace stream
public:
i2p::data::GzipInflator m_Inflator;
i2p::data::GzipDeflator m_Deflator;
std::unique_ptr<i2p::data::GzipDeflator> m_Deflator;
// for HTTP only
const decltype(m_Streams)& GetStreams () const { return m_Streams; };