From: Fabian Keil Date: Mon, 15 Feb 2021 15:47:03 +0000 (+0100) Subject: serve(): Increase the chances that the host is logged X-Git-Tag: v_3_0_32~54 X-Git-Url: http://www.privoxy.org/gitweb/templates.html?a=commitdiff_plain;h=d6c9b0e695a20c79e3365b6c5eec71f78f50750f;p=privoxy.git serve(): Increase the chances that the host is logged ... when closing a server socket. --- diff --git a/jcc.c b/jcc.c index c1a3a6e7..1e8ad445 100644 --- a/jcc.c +++ b/jcc.c @@ -4811,7 +4811,8 @@ static void serve(struct client_state *csp) log_error(LOG_LEVEL_CONNECT, "Closing server socket %d connected to %s. " "Keep-alive: %u. Tainted: %u. Socket alive: %u. Timeout: %u.", - csp->server_connection.sfd, csp->server_connection.host, + csp->server_connection.sfd, (csp->server_connection.host != NULL) ? + csp->server_connection.host : csp->http->host, 0 != (csp->flags & CSP_FLAG_SERVER_CONNECTION_KEEP_ALIVE), 0 != (csp->flags & CSP_FLAG_SERVER_SOCKET_TAINTED), socket_is_still_alive(csp->server_connection.sfd),