From e7fbcbffab44d077065a4afbcf608d8d1f22afd8 Mon Sep 17 00:00:00 2001 From: Martial BE Date: Thu, 21 Mar 2024 14:17:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20WSClient=20set=20Handshak?= =?UTF-8?q?eTimeout=20(#119)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/requester/ws_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/requester/ws_client.go b/common/requester/ws_client.go index 1b4cb229..a4d22dfd 100644 --- a/common/requester/ws_client.go +++ b/common/requester/ws_client.go @@ -14,7 +14,7 @@ import ( func GetWSClient(proxyAddr string) *websocket.Dialer { dialer := &websocket.Dialer{ - HandshakeTimeout: 5 * time.Second, + HandshakeTimeout: time.Duration(common.GetOrDefault("CONNECT_TIMEOUT", 5)) * time.Second, } if proxyAddr != "" {