mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 03:56:54 +02:00
Merge branch 'dev' of http://git.int.zerotier.com/zerotier/ZeroTierOne into dev
This commit is contained in:
commit
196bac726c
2 changed files with 10 additions and 2 deletions
|
@ -96,6 +96,10 @@ ifeq ($(ZT_SYNOLOGY), 1)
|
|||
override DEFS+=-D__SYNOLOGY__
|
||||
endif
|
||||
|
||||
ifeq ($(ZT_DISABLE_COMPRESSION), 1)
|
||||
override DEFS+=-DZT_DISABLE_COMPRESSION
|
||||
endif
|
||||
|
||||
ifeq ($(ZT_TRACE),1)
|
||||
override DEFS+=-DZT_TRACE
|
||||
endif
|
||||
|
|
|
@ -276,10 +276,14 @@ public:
|
|||
*/
|
||||
inline bool disableCompression() const
|
||||
{
|
||||
#ifndef ZT_SDK
|
||||
#ifndef ZT_DISABLE_COMPRESSION
|
||||
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
|
||||
/* Compression is disabled for libzt builds since it causes non-obvious chaotic
|
||||
interference with lwIP's TCP congestion algorithm. Compression is also disabled
|
||||
for some NAS builds due to the usage of low-performance processors in certain
|
||||
older and budget models. */
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue