diff options
author | 2020-09-15 15:36:39 +0300 | |
---|---|---|
committer | 2020-09-15 14:36:39 +0200 | |
commit | f96a2f1f698fc8cdd8340b8c773ae982f1c663c4 (patch) | |
tree | 5ea88a89bd3542a4961b561d44af223d676acfbd /plugin | |
parent | 0329de55c791e8a75f894430e0462b8705519b4d (diff) | |
download | coredns-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.go | 2 |
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 { |