Parcourir la source

TLS ECH: Increase DOH timeout (#5455)

Co-authored-by: 风扇滑翔翼 <[email protected]>
patterniha il y a 5 mois
Parent
commit
a6792dda69
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)