summaryrefslogtreecommitdiff
path: root/one.cpp
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2020-09-10 15:59:18 -0700
committerGrant Limberg <[email protected]>2020-09-10 15:59:18 -0700
commitbbb307aff740531dfe5a52ea56ab8ebaa86fe2ff (patch)
treec07e5c8a5173a07ce359ec1cf30fdec007a312ab /one.cpp
parent3db263284bcd416b4499dc7d90e8403de8d4b1c2 (diff)
DNS is now toggleable via `zerotier-cli set <nwid> allowDNS=[0|1]`
Flag is disabled by default as it should be opt-in on each endpoint
Diffstat (limited to 'one.cpp')
-rw-r--r--one.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/one.cpp b/one.cpp
index 8b5ed4cf..91d3e471 100644
--- a/one.cpp
+++ b/one.cpp
@@ -734,7 +734,7 @@ static int cli(int argc,char **argv)
}
std::size_t eqidx = arg2.find('=');
if (eqidx != std::string::npos) {
- if ((arg2.substr(0,eqidx) == "allowManaged")||(arg2.substr(0,eqidx) == "allowGlobal")||(arg2.substr(0,eqidx) == "allowDefault")) {
+ if ((arg2.substr(0,eqidx) == "allowManaged")||(arg2.substr(0,eqidx) == "allowGlobal")||(arg2.substr(0,eqidx) == "allowDefault")||(arg2.substr(0,eqidx) == "allowDNS")) {
char jsons[1024];
OSUtils::ztsnprintf(jsons,sizeof(jsons),"{\"%s\":%s}",
arg2.substr(0,eqidx).c_str(),