Add low-bandwidth mode

This commit is contained in:
Joseph Henry
2022-12-05 13:21:05 -08:00
parent 98b190c626
commit 3c9ea2b667
6 changed files with 42 additions and 10 deletions

View File

@@ -2122,6 +2122,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));
#ifndef ZT_SDK
const std::string up(OSUtils::jsonString(settings["softwareUpdate"],ZT_SOFTWARE_UPDATE_DEFAULT));