From f96a2f1f698fc8cdd8340b8c773ae982f1c663c4 Mon Sep 17 00:00:00 2001 From: Ruslan Drozhdzh <30860269+rdrozhdzh@users.noreply.github.com> Date: Tue, 15 Sep 2020 15:36:39 +0300 Subject: [PATCH] plugin/forward: fix panic when `expire` is configured as 0s (#4115) Signed-off-by: Ruslan Drozhdzh --- plugin/forward/persistent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/forward/persistent.go b/plugin/forward/persistent.go index e6cad8188..b4a1ce16e 100644 --- a/plugin/forward/persistent.go +++ b/plugin/forward/persistent.go @@ -44,7 +44,7 @@ func newTransport(addr string) *Transport { // connManagers manages the persistent connection cache for UDP and TCP. func (t *Transport) connManager() { - ticker := time.NewTicker(t.expire) + ticker := time.NewTicker(defaultExpire) Wait: for { select {