mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-06 04:51:46 -07:00
Update WinDNSHelper.cpp
This commit is contained in:
parent
1b137778d4
commit
046936b263
1 changed files with 3 additions and 1 deletions
|
@ -334,7 +334,9 @@ 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=".";
|
||||
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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue