瀏覽代碼

Add a warning about missing DNS functionality on Linux

It took me quite some searching before I found out that this simply is
not implemented. A warning would have been very useful.

refs: https://github.com/zerotier/ZeroTierOne/issues/2492
Jeremy Fleischman 1 月之前
父節點
當前提交
66a8c01d0e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      osdep/LinuxEthernetTap.hpp

+ 1 - 0
osdep/LinuxEthernetTap.hpp

@@ -59,6 +59,7 @@ class LinuxEthernetTap : public EthernetTap {
 	virtual void setMtu(unsigned int mtu);
 	virtual void setDns(const char* domain, const std::vector<InetAddress>& servers)
 	{
+		fprintf(stderr, "WARNING: ignoring call to LinuxEthernetTap::setDns on Linux. This is not implemented yet. See https://github.com/zerotier/ZeroTierOne/issues/2492 for details" ZT_EOL_S);
 	}
 
   private: