mirror of https://github.com/omar-polo/gmid.git
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.
This commit is contained in:
parent
6be41efe33
commit
c440a0ded9
3
server.c
3
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:
|
||||
|
|
Loading…
Reference in New Issue