dnstap tls support (#5917)

Signed-off-by: dmachard <5562930+dmachard@users.noreply.github.com>
This commit is contained in:
Denis MACHARD
2023-02-21 00:34:48 +01:00
committed by GitHub
parent 66df12d980
commit 83fc3bb5da
4 changed files with 52 additions and 6 deletions

View File

@@ -44,6 +44,7 @@ func TestConfig(t *testing.T) {
{"dnstap.sock", true, "unix", []byte("NAME"), []byte("VER")},
{"127.0.0.1:6000", false, "tcp", []byte("NAME2"), []byte("VER2")},
}},
{"dnstap tls://127.0.0.1:6000", false, []results{{"127.0.0.1:6000", false, "tls", []byte(hostname), []byte("-")}}},
}
for i, tc := range tests {
c := caddy.NewTestController("dns", tc.in)