优化netdns设置

This commit is contained in:
刘祥超
2022-09-12 17:43:48 +08:00
parent 80729935b6
commit 59f9b5c724

View File

@@ -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")