aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorGravatar Ruslan Drozhdzh <30860269+rdrozhdzh@users.noreply.github.com> 2020-09-15 15:36:39 +0300
committerGravatar GitHub <noreply@github.com> 2020-09-15 14:36:39 +0200
commitf96a2f1f698fc8cdd8340b8c773ae982f1c663c4 (patch)
tree5ea88a89bd3542a4961b561d44af223d676acfbd /plugin
parent0329de55c791e8a75f894430e0462b8705519b4d (diff)
downloadcoredns-f96a2f1f698fc8cdd8340b8c773ae982f1c663c4.tar.gz
coredns-f96a2f1f698fc8cdd8340b8c773ae982f1c663c4.tar.zst
coredns-f96a2f1f698fc8cdd8340b8c773ae982f1c663c4.zip
plugin/forward: fix panic when `expire` is configured as 0s (#4115)
Signed-off-by: Ruslan Drozhdzh <rdrozhdzh@infoblox.com>
Diffstat (limited to 'plugin')
-rw-r--r--plugin/forward/persistent.go2
1 files changed, 1 insertions, 1 deletions
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 {