From 094563f88fdadeff7b36885528b9c10ce8acefbb Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 25 May 2016 10:51:10 +0000 Subject: [PATCH] listen_loop(): Include the listen-address in the log message when logging new requests Patch contributed by pursievro. --- jcc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jcc.c b/jcc.c index 082bb02e..0659b05c 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.443 2016/05/22 12:43:07 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.444 2016/05/25 10:50:55 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -4054,7 +4054,8 @@ static void listen_loop(void) if (block_acl(NULL,csp)) { log_error(LOG_LEVEL_CONNECT, - "Connection from %s on socket %d dropped due to ACL", csp->ip_addr_str, csp->cfd); + "Connection from %s on %s (socket %d) dropped due to ACL", + csp->ip_addr_str, csp->listen_addr_str, csp->cfd); close_socket(csp->cfd); freez(csp->ip_addr_str); freez(csp->listen_addr_str); -- 2.39.2