aboutsummaryrefslogtreecommitdiff
path: root/plugin/forward/forward.go
diff options
context:
space:
mode:
authorGravatar Yuheng <chenyuheng99@qq.com> 2023-08-14 14:01:13 -0400
committerGravatar GitHub <noreply@github.com> 2023-08-14 11:01:13 -0700
commit90d55611a2efbcbdd58c63ecae9f979af4668587 (patch)
tree29ff3fdcdad38be0f4fdefbd9f351d23795dceff /plugin/forward/forward.go
parenteec26e59c63954bd410965ab8fa4663e03e1d9a1 (diff)
downloadcoredns-90d55611a2efbcbdd58c63ecae9f979af4668587.tar.gz
coredns-90d55611a2efbcbdd58c63ecae9f979af4668587.tar.zst
coredns-90d55611a2efbcbdd58c63ecae9f979af4668587.zip
Plugin dnstap: add support for "extra" field in payload (#6226)
* dnstap: add 'extra' field Signed-off-by: chenyuheng <chenyuheng99@qq.com> * dnstap: add setup_test for 'extra' field Signed-off-by: chenyuheng <chenyuheng99@qq.com> * udnstap: update document and test Signed-off-by: chenyuheng <chenyuheng99@qq.com> * dnstap: update setup_test for more coverage Signed-off-by: chenyuheng <chenyuheng99@qq.com> * dnstap: add TapMessageWithMetadata function to Dnstap Signed-off-by: chenyuheng <chenyuheng99@qq.com> * dnstap: adapt dnstap and forward plugins to use TapMessageWithMetadata Signed-off-by: chenyuheng <chenyuheng99@qq.com> * change TapMessageWithMetadata function Signed-off-by: chenyuheng <chenyuheng99@qq.com> * tab inconsistency fix Signed-off-by: chenyuheng <chenyuheng99@qq.com> * fix replacer to support empty state Signed-off-by: chenyuheng <chenyuheng99@qq.com> * add replacer test for empty status parameter Signed-off-by: chenyuheng <chenyuheng99@qq.com> * dnstap: update unit test for 'extra' field Signed-off-by: chenyuheng <chenyuheng99@qq.com> * clean up code Signed-off-by: chenyuheng <chenyuheng99@qq.com> * gofmt fix & static analysis fix Signed-off-by: chenyuheng <chenyuheng99@qq.com> * dnstap: refactor Signed-off-by: chenyuheng <chenyuheng99@qq.com> --------- Signed-off-by: chenyuheng <chenyuheng99@qq.com>
Diffstat (limited to 'plugin/forward/forward.go')
-rw-r--r--plugin/forward/forward.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/forward/forward.go b/plugin/forward/forward.go
index b3df8330f..e53d74ae2 100644
--- a/plugin/forward/forward.go
+++ b/plugin/forward/forward.go
@@ -167,7 +167,7 @@ func (f *Forward) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg
}
if len(f.tapPlugins) != 0 {
- toDnstap(f, proxy.Addr(), state, opts, ret, start)
+ toDnstap(ctx, f, proxy.Addr(), state, opts, ret, start)
}
upstreamErr = err