]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
report peer address in TLS mode, and specify protocol
authorEvan Hunt <each@isc.org>
Fri, 18 Sep 2020 01:28:37 +0000 (18:28 -0700)
committerOndřej Surý <ondrej@sury.org>
Wed, 9 Dec 2020 09:46:16 +0000 (10:46 +0100)
- 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)

lib/isc/netmgr/tls.c

index df0a1a1a94e82161a0dc0c4e6b477a3ed3c3d268..d5049f1628e0fc0c784d0be9cd4bf57a564267f8 100644 (file)
@@ -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) {