]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
tests/dnstap: Update configuration to match latest changes
authorPavel Dolezal <pavel.dolezal@nic.cz>
Tue, 15 Dec 2020 14:24:11 +0000 (15:24 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 12 Jan 2021 10:55:03 +0000 (11:55 +0100)
tests/dnstap/src/dnstap-test/config
tests/dnstap/src/dnstap-test/main.go

index c2d84e71ec73e9ebc4524d9fa123569567f4c0c3..de877f3298fc3827121e14621510b69a2de8df14 100644 (file)
@@ -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'
index 6ef3e1eb5c1d0ec3c45f437c7d956e41e1d78b62..d06879d7743b7f03ced06c8d08d633fbcccf21d0 100644 (file)
@@ -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 {