2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-03 16:15:27 +00:00

dnstap: log actual local IPv6 address, not :: listening address

This commit is contained in:
Tony Finch
2018-04-09 18:07:47 +01:00
parent ecd812b4d6
commit ccff953c25

View File

@@ -1248,7 +1248,7 @@ client_send(ns_client_t *client) {
#ifdef HAVE_DNSTAP #ifdef HAVE_DNSTAP
if (client->view != NULL) { if (client->view != NULL) {
dns_dt_send(client->view, dtmsgtype, dns_dt_send(client->view, dtmsgtype,
&client->peeraddr, &client->interface->addr, &client->peeraddr, &client->destsockaddr,
ISC_TRUE, &zr, &client->requesttime, NULL, ISC_TRUE, &zr, &client->requesttime, NULL,
&buffer); &buffer);
} }
@@ -1278,7 +1278,7 @@ client_send(ns_client_t *client) {
if (client->view != NULL) { if (client->view != NULL) {
dns_dt_send(client->view, dtmsgtype, dns_dt_send(client->view, dtmsgtype,
&client->peeraddr, &client->peeraddr,
&client->interface->addr, &client->destsockaddr,
ISC_FALSE, &zr, ISC_FALSE, &zr,
&client->requesttime, NULL, &buffer); &client->requesttime, NULL, &buffer);
} }
@@ -2826,7 +2826,7 @@ ns__client_request(isc_task_t *task, isc_event_t *event) {
dtmsgtype = DNS_DTTYPE_AQ; dtmsgtype = DNS_DTTYPE_AQ;
dns_dt_send(client->view, dtmsgtype, &client->peeraddr, 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); &client->requesttime, NULL, buffer);
#endif /* HAVE_DNSTAP */ #endif /* HAVE_DNSTAP */