mirror of
https://github.com/fumiama/terasu.git
synced 2026-06-24 23:00:27 +08:00
optimize: 缩短默认 dns 尝试时间
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user