aboutsummaryrefslogtreecommitdiff
path: root/plugin/forward/forward.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/forward/forward.go')
-rw-r--r--plugin/forward/forward.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/forward/forward.go b/plugin/forward/forward.go
index 90ae1aef8..b32e8b3b4 100644
--- a/plugin/forward/forward.go
+++ b/plugin/forward/forward.go
@@ -49,7 +49,7 @@ type Forward struct {
// the maximum allowed (maxConcurrent)
ErrLimitExceeded error
- tapPlugin *dnstap.Dnstap // when the dnstap plugin is loaded, we use to this to send messages out.
+ tapPlugins []*dnstap.Dnstap // when dnstap plugins are loaded, we use to this to send messages out.
Next plugin.Handler
}
@@ -150,7 +150,7 @@ func (f *Forward) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg
child.Finish()
}
- if f.tapPlugin != nil {
+ if len(f.tapPlugins) != 0 {
toDnstap(f, proxy.addr, state, opts, ret, start)
}