mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-20 21:43:08 +00:00
fb6af1971b
It stopped working for ipv4 only networks in Monterey. See #1696 We add some config like so to System Configuration ``` scutil show State:/Network/Service/9bee8941b5xxxxxx/IPv4 <dictionary> { Addresses : <array> { 0 : 10.2.1.36 } InterfaceName : feth4823 Router : 10.2.1.36 ServerAddress : 127.0.0.1 } ```
24 lines
643 B
C++
24 lines
643 B
C++
#ifndef MAC_DNS_HELPER
|
|
#define MAC_DNS_HELPER
|
|
|
|
#include <vector>
|
|
#include "../node/InetAddress.hpp"
|
|
#include "../node/MAC.hpp"
|
|
|
|
namespace ZeroTier {
|
|
|
|
class MacDNSHelper
|
|
{
|
|
public:
|
|
static void setDNS(uint64_t nwid, const char *domain, const std::vector<InetAddress> &servers);
|
|
static void removeDNS(uint64_t nwid);
|
|
static bool addIps4(uint64_t nwid, const MAC mac, const char *dev, const std::vector<InetAddress> &addrs);
|
|
static bool addIps6(uint64_t nwid, const MAC mac, const char *dev, const std::vector<InetAddress> &addrs);
|
|
static bool removeIps4(uint64_t nwid);
|
|
static bool removeIps6(uint64_t nwid);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|