1
0
mirror of https://github.com/fumiama/terasu.git synced 2026-06-24 23:00:27 +08:00

optimize: 缩短默认 dns 尝试时间

This commit is contained in:
源文雨
2024-05-07 23:41:17 +09:00
parent c887e26289
commit 547a591149
2 changed files with 7 additions and 7 deletions

View File

@@ -65,10 +65,6 @@ func (jr *dohjsonresponse) hosts() []string {
return hosts
}
var defaultDialer = net.Dialer{
Timeout: time.Second * 4,
}
var lookupTable = ttl.NewCache[string, []string](time.Hour)
var trsHTTP2ClientWithSystemDNS = http.Client{