mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-03 23:20:25 +08:00
优化netdns设置
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user