The branch master has been updated
       via  994fa5f9861df94c07699cb118ad5c5470a868b2 (commit)
      from  a04b06573e2b3c6a5c703a60bd95354c6c6e91dc (commit)


- Log -----------------------------------------------------------------
commit 994fa5f9861df94c07699cb118ad5c5470a868b2
Author: Zengit <[email protected]>
Date:   Tue Aug 24 05:06:04 2021 +0300

    Socket now displays what address it is connecting to
    
    CLA: trivial
    
    Reviewed-by: Tomas Mraz <[email protected]>
    Reviewed-by: Paul Dale <[email protected]>
    (Merged from https://github.com/openssl/openssl/pull/16392)

-----------------------------------------------------------------------

Summary of changes:
 apps/lib/s_socket.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/apps/lib/s_socket.c b/apps/lib/s_socket.c
index dbeebb54c5..1dd30ac724 100644
--- a/apps/lib/s_socket.c
+++ b/apps/lib/s_socket.c
@@ -172,6 +172,8 @@ int init_client(int *sock, const char *host, const char 
*port,
         break;
     }
 
+    BIO_printf(bio_out, "Connecting to %s\n", 
BIO_ADDR_hostname_string(BIO_ADDRINFO_address(ai), 1));
+
     if (*sock == INVALID_SOCKET) {
         if (bindaddr != NULL && !found) {
             BIO_printf(bio_err, "Can't bind %saddress for %s%s%s\n",

Reply via email to