🐛 fix: WSClient set HandshakeTimeout (#119)

This commit is contained in:
Martial BE 2024-03-21 14:17:10 +08:00
parent 71171c63f5
commit e7fbcbffab
No known key found for this signature in database
GPG Key ID: D06C32DF0EDB9084

View File

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