diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-06-06 10:04:11 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-06-06 10:04:11 -0700 |
| commit | 848f822171a41f78eef7ee0dcab99a6ec53d634a (patch) | |
| tree | 12db6945a5bfa798c00a98f6a2b915f42bc7f56c /node/NetworkConfig.hpp | |
| parent | cacdb445c786f97d5d9af200b17665bb171a42d9 (diff) | |
| parent | d4199ddb3ef59b8f754129bfc91f91c18f84759c (diff) | |
| download | infinitytier-848f822171a41f78eef7ee0dcab99a6ec53d634a.tar.gz infinitytier-848f822171a41f78eef7ee0dcab99a6ec53d634a.zip | |
.
Diffstat (limited to 'node/NetworkConfig.hpp')
| -rw-r--r-- | node/NetworkConfig.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/node/NetworkConfig.hpp b/node/NetworkConfig.hpp index 6367b8ec..be8c03dd 100644 --- a/node/NetworkConfig.hpp +++ b/node/NetworkConfig.hpp @@ -274,7 +274,14 @@ public: /** * @return True if frames should not be compressed */ - inline bool disableCompression() const { return ((this->flags & ZT_NETWORKCONFIG_FLAG_DISABLE_COMPRESSION) != 0); } + inline bool disableCompression() const + { +#ifndef ZT_SDK + return ((this->flags & ZT_NETWORKCONFIG_FLAG_DISABLE_COMPRESSION) != 0); +#else + return false; // Compression is disabled for SDK builds since it doesn't play nice with lwIP +#endif + } /** * @return Network type is public (no access control) |
