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 != "" {