From: Pavel Dolezal Date: Tue, 15 Dec 2020 14:24:11 +0000 (+0100) Subject: tests/dnstap: Update configuration to match latest changes X-Git-Tag: v5.3.0~22^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54dc0dd8edd545444940c45bbcdd07caf4fae3fe;p=thirdparty%2Fknot-resolver.git tests/dnstap: Update configuration to match latest changes --- diff --git a/tests/dnstap/src/dnstap-test/config b/tests/dnstap/src/dnstap-test/config index c2d84e71e..de877f329 100644 --- a/tests/dnstap/src/dnstap-test/config +++ b/tests/dnstap/src/dnstap-test/config @@ -4,7 +4,9 @@ modules = { 'hints', dnstap = { socket_path = "/tmp/dnstap.sock", - log_responses = true, + client = { + log_responses = true, + } } } hints['fake1.localdomain'] = '1.2.3.4' diff --git a/tests/dnstap/src/dnstap-test/main.go b/tests/dnstap/src/dnstap-test/main.go index 6ef3e1eb5..d06879d77 100644 --- a/tests/dnstap/src/dnstap-test/main.go +++ b/tests/dnstap/src/dnstap-test/main.go @@ -36,7 +36,7 @@ func qnameFromFrame(b []byte) (string, error) { return name, err } m := dt.Message - if *m.Type != dnstap.Message_RESOLVER_RESPONSE { + if *m.Type != dnstap.Message_CLIENT_RESPONSE { return name, fmt.Errorf("incorrect message type") } if m.ResponseMessage == nil {