From 213b12b5867dc117455c458615b651f6759027c3 Mon Sep 17 00:00:00 2001 From: He Xian Date: Sun, 14 Jul 2024 18:33:47 +0800 Subject: [PATCH] tunnel: faster first redial Signed-off-by: He Xian --- v2/tunnel.go | 1 + 1 file changed, 1 insertion(+) diff --git a/v2/tunnel.go b/v2/tunnel.go index 50ecd9a..577699d 100644 --- a/v2/tunnel.go +++ b/v2/tunnel.go @@ -103,6 +103,7 @@ func (t *Tunnel) scheduleRedial() <-chan time.Time { return make(<-chan time.Time) } var waitTimeConst = [...]time.Duration{ + 200 * time.Millisecond, 5 * time.Second, 10 * time.Second, 15 * time.Second,