From: Evan Hunt Date: Fri, 18 Sep 2020 01:28:37 +0000 (-0700) Subject: report peer address in TLS mode, and specify protocol X-Git-Tag: v9.16.11~17^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f5fff5c1e5ee7c9c330925e54a38b991f77d1fa;p=thirdparty%2Fbind9.git report peer address in TLS mode, and specify protocol - peer address was not being reported correctly by "dig +tls" - the protocol used is now reported in the dig output: UDP, TCP, or TLS. (cherry picked from commit 8886569e9d11258f0c7f01bae1040435ffb61631) --- diff --git a/lib/isc/netmgr/tls.c b/lib/isc/netmgr/tls.c index df0a1a1a94e..d5049f1628e 100644 --- a/lib/isc/netmgr/tls.c +++ b/lib/isc/netmgr/tls.c @@ -653,6 +653,7 @@ tls_connect_cb(isc_nmhandle_t *handle, isc_result_t result, void *cbarg) { INSIST(VALID_NMHANDLE(handle)); + tlssock->peer = isc_nmhandle_peeraddr(handle); isc_nmhandle_attach(handle, &tlssock->outerhandle); result = initialize_tls(tlssock, false); if (result != ISC_R_SUCCESS) {