summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rw-r--r--service/ControlPlane.cpp2
-rw-r--r--service/OneService.cpp9
-rw-r--r--service/README.md1
3 files changed, 1 insertions, 11 deletions
diff --git a/service/ControlPlane.cpp b/service/ControlPlane.cpp
index 86158a91..e5142f3e 100644
--- a/service/ControlPlane.cpp
+++ b/service/ControlPlane.cpp
@@ -391,7 +391,6 @@ unsigned int ControlPlane::handleRequest(
"\t\"worldId\": %llu,\n"
"\t\"worldTimestamp\": %llu,\n"
"\t\"online\": %s,\n"
- "\t\"relayPolicy\": \"%s\",\n"
"\t\"tcpFallbackActive\": %s,\n"
"\t\"versionMajor\": %d,\n"
"\t\"versionMinor\": %d,\n"
@@ -405,7 +404,6 @@ unsigned int ControlPlane::handleRequest(
status.worldId,
status.worldTimestamp,
(status.online) ? "true" : "false",
- ((status.relayPolicy == ZT_RELAY_POLICY_ALWAYS) ? "always" : ((status.relayPolicy == ZT_RELAY_POLICY_NEVER) ? "never" : "trusted")),
(_svc->tcpFallbackActive()) ? "true" : "false",
ZEROTIER_ONE_VERSION_MAJOR,
ZEROTIER_ONE_VERSION_MINOR,
diff --git a/service/OneService.cpp b/service/OneService.cpp
index 6d9effa1..f6174d42 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -694,7 +694,7 @@ public:
_controlPlane->addAuthToken(authToken.c_str());
_controlPlane->setController(_controller);
- { // Remember networks from previous session
+ { // Load existing networks
std::vector<std::string> networksDotD(OSUtils::listDirectory((_homePath + ZT_PATH_SEPARATOR_S "networks.d").c_str()));
for(std::vector<std::string>::iterator f(networksDotD.begin());f!=networksDotD.end();++f) {
std::size_t dot = f->find_last_of('.');
@@ -981,13 +981,6 @@ public:
if (settings.is_object()) {
_portMappingEnabled = OSUtils::jsonBool(settings["portMappingEnabled"],true);
- const std::string rp(OSUtils::jsonString(settings["relayPolicy"],""));
- if ((rp == "always")||(rp == "ALWAYS"))
- _node->setRelayPolicy(ZT_RELAY_POLICY_ALWAYS);
- else if ((rp == "never")||(rp == "NEVER"))
- _node->setRelayPolicy(ZT_RELAY_POLICY_NEVER);
- else _node->setRelayPolicy(ZT_RELAY_POLICY_TRUSTED);
-
const std::string up(OSUtils::jsonString(settings["softwareUpdate"],ZT_SOFTWARE_UPDATE_DEFAULT));
const bool udist = OSUtils::jsonBool(settings["softwareUpdateDist"],false);
if (((up == "apply")||(up == "download"))||(udist)) {
diff --git a/service/README.md b/service/README.md
index 5d54b923..d3bc5338 100644
--- a/service/README.md
+++ b/service/README.md
@@ -24,7 +24,6 @@ Settings available in `local.conf` (this is not valid JSON, and JSON does not al
}
},
"settings": { /* Other global settings */
- "relayPolicy": "trusted"|"always"|"never", /* Policy for relaying others' traffic (see below) */
"portMappingEnabled": true|false, /* If true (the default), try to use uPnP or NAT-PMP to map ports */
"softwareUpdate": "apply"|"download"|"disable", /* Automatically apply updates, just download, or disable built-in software updates */
"softwareUpdateDist": true|false, /* If true, distribute software updates (only really useful to ZeroTier, Inc. itself, default is false) */