mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-14 21:31:16 +08:00
Chore: increase DNS timeout (#464)
This commit is contained in:
parent
14a3ff32f6
commit
86d3d77a7f
@ -180,7 +180,7 @@ func (r *Resolver) IsFakeIP(ip net.IP) bool {
|
||||
}
|
||||
|
||||
func (r *Resolver) batchExchange(clients []resolver, m *D.Msg) (msg *D.Msg, err error) {
|
||||
fast, ctx := picker.WithTimeout(context.Background(), time.Second)
|
||||
fast, ctx := picker.WithTimeout(context.Background(), time.Second * 5)
|
||||
for _, client := range clients {
|
||||
r := client
|
||||
fast.Go(func() (interface{}, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user