修订代码,示例;添加 udp_timeout 配置

This commit is contained in:
hahahrfool
2022-04-07 14:03:31 +08:00
parent 2d384314f4
commit 30eb874dc2
5 changed files with 31 additions and 8 deletions

View File

@@ -274,6 +274,7 @@ func (dm *DNSMachine) QueryType(domain string, dns_type uint16) (ip net.IP) {
break
}
}
//没备用的,那就只好保持 dm.defaultConn.Conn 的 nil状态, 下一次dns查询就会失败
}
dm.mutex.Unlock()