change connection timeout

master
Dingjun 7 years ago
parent fd1a8528d6
commit 15bb6de9b9

@ -195,7 +195,7 @@ func main() {
conf := &obfssh.Conf{
ObfsMethod: cfg.ObfsMethod,
ObfsKey: cfg.ObfsKey,
Timeout: time.Duration(cfg.KeepaliveInterval+5) * time.Second,
Timeout: time.Duration(cfg.KeepaliveInterval*2) * time.Second,
KeepAliveInterval: time.Duration(cfg.KeepaliveInterval) * time.Second,
KeepAliveMax: cfg.KeepaliveMax,
DisableObfsAfterHandshake: cfg.DisableObfsAfterHandshake,

Loading…
Cancel
Save