From 8d2ff8a6bf6634deb323876fa5fe251507fb37a9 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Fri, 31 Jan 2020 11:18:14 +0100 Subject: [PATCH] dnstap unbound-dnstap-sock, add -t option. --- dnstap/unbound-dnstap-socket.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dnstap/unbound-dnstap-socket.c b/dnstap/unbound-dnstap-socket.c index cbb04a1c2..c5ac4be3f 100644 --- a/dnstap/unbound-dnstap-socket.c +++ b/dnstap/unbound-dnstap-socket.c @@ -1116,7 +1116,7 @@ int main(int argc, char** argv) #endif /* command line options */ - while( (c=getopt(argc, argv, "hls:u:vx:y:z:")) != -1) { + while( (c=getopt(argc, argv, "hls:t:u:vx:y:z:")) != -1) { switch(c) { case 'u': if(!cfg_strlist_append(&local_list, @@ -1128,6 +1128,12 @@ int main(int argc, char** argv) strdup(optarg))) fatal_exit("out of memory"); break; + case 't': + if(!cfg_strlist_append(&tls_list, + strdup(optarg))) + fatal_exit("out of memory"); + usessl = 1; + break; case 'x': server_key = optarg; usessl = 1; -- 2.47.3