]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
dnstap unbound-dnstap-sock, add -t option.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 31 Jan 2020 10:18:14 +0000 (11:18 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 31 Jan 2020 10:18:14 +0000 (11:18 +0100)
dnstap/unbound-dnstap-socket.c

index cbb04a1c2fa5a2f5073a5eb60b4e61fdc165059e..c5ac4be3f70a5d4a5bc139e40748e684d88296da 100644 (file)
@@ -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;