Commit f96a2f1f authored by Ruslan Drozhdzh's avatar Ruslan Drozhdzh Committed by GitHub

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

Signed-off-by: default avatarRuslan Drozhdzh <rdrozhdzh@infoblox.com>
parent 0329de55
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment