]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
dnstap: log actual local IPv6 address, not :: listening address
authorTony Finch <dot@dotat.at>
Mon, 9 Apr 2018 17:07:47 +0000 (18:07 +0100)
committerTony Finch <dot@dotat.at>
Mon, 9 Apr 2018 17:26:51 +0000 (18:26 +0100)
lib/ns/client.c

index b69e5e87b79a01a22ebad18ddd8a2ad52e1bfe22..6ba515c4e9f51d0f24105cbb3f9b2b782c902a88 100644 (file)
@@ -1248,7 +1248,7 @@ client_send(ns_client_t *client) {
 #ifdef HAVE_DNSTAP
                if (client->view != NULL) {
                        dns_dt_send(client->view, dtmsgtype,
-                                   &client->peeraddr, &client->interface->addr,
+                                   &client->peeraddr, &client->destsockaddr,
                                    ISC_TRUE, &zr, &client->requesttime, NULL,
                                    &buffer);
                }
@@ -1278,7 +1278,7 @@ client_send(ns_client_t *client) {
                if (client->view != NULL) {
                        dns_dt_send(client->view, dtmsgtype,
                                    &client->peeraddr,
-                                   &client->interface->addr,
+                                   &client->destsockaddr,
                                    ISC_FALSE, &zr,
                                    &client->requesttime, NULL, &buffer);
                }
@@ -2826,7 +2826,7 @@ ns__client_request(isc_task_t *task, isc_event_t *event) {
                        dtmsgtype = DNS_DTTYPE_AQ;
 
                dns_dt_send(client->view, dtmsgtype, &client->peeraddr,
-                           &client->interface->addr, TCP_CLIENT(client), NULL,
+                           &client->destsockaddr, TCP_CLIENT(client), NULL,
                            &client->requesttime, NULL, buffer);
 #endif /* HAVE_DNSTAP */