Skip to content

Commit 2a1f214

Browse files
authored
update
1 parent d9b38cc commit 2a1f214

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

transport/internet/tls/ech.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,8 @@ func dnsQuery(server string, domain string, sockopt *internet.SocketConfig) ([]b
245245
return conn, nil
246246
},
247247
}
248-
timeout := 5 * time.Second
249-
if sockopt != nil && len(sockopt.DialerProxy) > 0 {
250-
timeout = 10 * time.Second
251-
}
252248
c := &http.Client{
253-
Timeout: timeout,
249+
Timeout: 30 * time.Second,
254250
Transport: tr,
255251
}
256252
client, _ = clientForECHDOH.LoadOrStore(serverKey, c)

0 commit comments

Comments
 (0)