mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2026-03-14 18:51:06 -07:00
Make encrypted HELLO a local.conf setting -- 99.999999% of users do not need it and it introduces scalability problems on large controllers.
This commit is contained in:
parent
eb422ddf08
commit
ab208bb8f9
6 changed files with 55 additions and 13 deletions
|
|
@ -1158,7 +1158,11 @@ class OneServiceImpl : public OneService {
|
|||
cb.eventCallback = SnodeEventCallback;
|
||||
cb.pathCheckFunction = SnodePathCheckFunction;
|
||||
cb.pathLookupFunction = SnodePathLookupFunction;
|
||||
_node = new Node(this, (void*)0, &cb, OSUtils::now());
|
||||
// These settings can get set later when local.conf is checked.
|
||||
struct ZT_Node_Config config;
|
||||
config.enableEncryptedHello = 0;
|
||||
config.lowBandwidthMode = 0;
|
||||
_node = new Node(this, (void*)0, &config, &cb, OSUtils::now());
|
||||
}
|
||||
|
||||
// local.conf
|
||||
|
|
@ -2880,6 +2884,7 @@ class OneServiceImpl : public OneService {
|
|||
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->setEncryptedHelloEnabled(OSUtils::jsonBool(settings["encryptedHelloEnabled"], false));
|
||||
_node->setLowBandwidthMode(OSUtils::jsonBool(settings["lowBandwidthMode"], false));
|
||||
#if defined(__LINUX__) || defined(__FreeBSD__)
|
||||
_multicoreEnabled = OSUtils::jsonBool(settings["multicoreEnabled"], false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue