From cb1c5ab8d5d827c5ac8c96177c39599937dd087c Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 17 Jul 2011 13:30:24 +0000 Subject: [PATCH] Also log the client socket when dropping a connection. --- jcc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jcc.c b/jcc.c index 06418a87..bd20098e 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.354 2011/07/03 17:54:29 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.355 2011/07/08 13:27:31 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -3526,7 +3526,8 @@ static void listen_loop(void) #ifdef FEATURE_ACL if (block_acl(NULL,csp)) { - log_error(LOG_LEVEL_CONNECT, "Connection from %s dropped due to ACL", csp->ip_addr_str); + log_error(LOG_LEVEL_CONNECT, + "Connection from %s on socket %d dropped due to ACL", csp->ip_addr_str, csp->cfd); close_socket(csp->cfd); freez(csp->ip_addr_str); freez(csp_list); -- 2.39.2