aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-08-28 21:42:58 +0000
committerOmar Polo <op@omarpolo.com>2023-08-28 21:42:58 +0000
commitc440a0ded9bef20b32c6f86b27cdf5ab52e1e16f (patch)
treebd819d203ad49a4ab095cb1954fb623734813537 /server.c
parent6be41efe33421ba5d24cdb5837a3c0d1cb70a471 (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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.c b/server.c
index 2c91310..9aee9da 100644
--- a/server.c
+++ b/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: