mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 20:13:44 +02:00
Update WinDNSHelper.cpp
This commit is contained in:
parent
a2162c01e3
commit
1993be973e
1 changed files with 2 additions and 1 deletions
|
@ -335,6 +335,7 @@ void WinDNSHelper::setDNS(uint64_t nwid, const char* domain, const std::vector<I
|
|||
RegSetKeyValueA(dnsKey, NULL, "GenericDNSServers", REG_SZ, serverValue.data(), serverValue.length());
|
||||
RegSetKeyValueA(dnsKey, NULL, "IPSECCARestriction", REG_SZ, "", 0);
|
||||
std::string d = "." + std::string(domain);
|
||||
if(d=="..") d=".";
|
||||
RegSetKeyValueA(dnsKey, NULL, "Name", REG_MULTI_SZ, d.data(), d.length());
|
||||
DWORD version = 2;
|
||||
RegSetKeyValueA(dnsKey, NULL, "Version", REG_DWORD, &version, sizeof(DWORD));
|
||||
|
@ -350,4 +351,4 @@ void WinDNSHelper::removeDNS(uint64_t nwid)
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue