Pārlūkot izejas kodu

TLS ECH: Increase DOH timeout (#5455)

Co-authored-by: 风扇滑翔翼 <[email protected]>
patterniha 2 dienas atpakaļ
vecāks
revīzija
a6792dda69
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      transport/internet/tls/ech.go

+ 1 - 1
transport/internet/tls/ech.go

@@ -246,7 +246,7 @@ func dnsQuery(server string, domain string, sockopt *internet.SocketConfig) ([]b
 				},
 			}
 			c := &http.Client{
-				Timeout:   5 * time.Second,
+				Timeout:   30 * time.Second,
 				Transport: tr,
 			}
 			client, _ = clientForECHDOH.LoadOrStore(serverKey, c)