plugin/forward: fix panic when expire is configured as 0s (#4115)

Signed-off-by: Ruslan Drozhdzh <rdrozhdzh@infoblox.com>
This commit is contained in:
Ruslan Drozhdzh 2020-09-15 15:36:39 +03:00 committed by GitHub
parent 0329de55c7
commit f96a2f1f69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {