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
This commit is contained in:
Grant Limberg 2020-09-10 15:59:18 -07:00
parent 3db263284b
commit bbb307aff7
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
4 changed files with 35 additions and 8 deletions

View file

@ -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(),