From 59f9b5c7245495b77783c25111104b1a1e67ef8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Mon, 12 Sep 2022 17:43:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96netdns=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/node.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/nodes/node.go b/internal/nodes/node.go index 0faa1bf..1f2bea7 100644 --- a/internal/nodes/node.go +++ b/internal/nodes/node.go @@ -91,6 +91,10 @@ func (this *Node) Test() error { // Start 启动 func (this *Node) Start() { + // 设置netdns + // 这个需要放在所有网络访问的最前面 + _ = os.Setenv("GODEBUG", "netdns=go") + _, ok := os.LookupEnv("EdgeDaemon") if ok { remotelogs.Println("NODE", "start from daemon")