commit c440a0ded9bef20b32c6f86b27cdf5ab52e1e16f from: Omar Polo date: Mon Aug 28 21:42:58 2023 UTC log ip address and port when tls_handshake fails These connection are not otherwise logged and it could be helpful to track down the bad ip. commit - 6be41efe33421ba5d24cdb5837a3c0d1cb70a471 commit + c440a0ded9bef20b32c6f86b27cdf5ab52e1e16f blob - 2c913107e1b95be025844039602b4a8d7e00a0eb blob + 9aee9da940260fceccce8492865c8e46e304b071 --- server.c +++ server.c @@ -373,7 +373,8 @@ handle_handshake(int fd, short ev, void *d) case 0: /* success */ break; case -1: - log_warnx("tls_handshake failed: %s", tls_error(c->ctx)); + log_warnx("(%s:%s) tls_handshake failed: %s", + c->rhost, c->rserv, tls_error(c->ctx)); client_close(c); return; case TLS_WANT_POLLIN: