diff options
author | Joseph Henry <josephjah@gmail.com> | 2019-05-17 10:15:40 -0700 |
---|---|---|
committer | Joseph Henry <josephjah@gmail.com> | 2019-05-17 10:15:40 -0700 |
commit | 90d324ae964fddf3355505d5d9651e75872f76b7 (patch) | |
tree | d36ecd7b409d4d5ca5486effac5215d37c19f93b /node/NetworkConfig.hpp | |
parent | 4743ad0b16a72c00039de1aed98499fe0adf633f (diff) | |
download | infinitytier-90d324ae964fddf3355505d5d9651e75872f76b7.tar.gz infinitytier-90d324ae964fddf3355505d5d9651e75872f76b7.zip |
Fixed ZT_SDK build issue. Moved ZT_SDK preprocessor directives to more permanent homes
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) |