Merge pull request #2364 from zerotier/jh-fix-for-lbm

Fix for low-bandwidth mode
This commit is contained in:
Joseph Henry 2024-09-13 10:01:47 -07:00 committed by GitHub
commit 4920b68d2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2599,6 +2599,7 @@ public:
fprintf(stderr,"WARNING: using manually-specified secondary and/or tertiary ports. This can cause NAT issues." ZT_EOL_S);
}
_portMappingEnabled = OSUtils::jsonBool(settings["portMappingEnabled"],true);
_node->setLowBandwidthMode(OSUtils::jsonBool(settings["lowBandwidthMode"],false));
#if defined(__LINUX__) || defined(__FreeBSD__)
_multicoreEnabled = OSUtils::jsonBool(settings["multicoreEnabled"],false);
_concurrency = OSUtils::jsonInt(settings["concurrency"],1);