DNS config support on macOS

This commit is contained in:
Grant Limberg 2020-08-05 14:26:11 -07:00
parent d2708daa8e
commit 302ac8fefe
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
6 changed files with 166 additions and 2 deletions

20
osdep/MacDNSHelper.hpp Normal file
View file

@ -0,0 +1,20 @@
#ifndef MAC_DNS_HELPER
#define MAC_DNS_HELPER
#include <vector>
#include "../node/InetAddress.hpp"
namespace ZeroTier {
class MacDNSHelper
{
public:
static void doTheThing();
static void setDNS(uint64_t nwid, const char *domain, const std::vector<InetAddress> &servers);
static void removeDNS(uint64_t nwid);
};
}
#endif