mirror of https://github.com/openssl/openssl
Socket now displays what address it is connecting to
CLA: trivial Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16392)
This commit is contained in:
parent
a04b06573e
commit
994fa5f986
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue