diff options
author | Omar Polo <op@omarpolo.com> | 2023-08-28 21:42:58 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-08-28 21:42:58 +0000 |
commit | c440a0ded9bef20b32c6f86b27cdf5ab52e1e16f (patch) | |
tree | bd819d203ad49a4ab095cb1954fb623734813537 /server.c | |
parent | 6be41efe33421ba5d24cdb5837a3c0d1cb70a471 (diff) |
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.
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |