From 231f059d8c6b00c5c87ac10c58c4612601a60ab7 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sun, 24 May 2015 14:21:04 +0800 Subject: [PATCH] fcgi_is_allowed should not log error --- main/fastcgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/fastcgi.c b/main/fastcgi.c index 0cbe01ab36..675b9a88b0 100644 --- a/main/fastcgi.c +++ b/main/fastcgi.c @@ -1239,7 +1239,6 @@ static int fcgi_is_allowed() { } #endif - fcgi_log(FCGI_ERROR, "Connection disallowed: IP address '%s' has been dropped.", fcgi_get_last_client_ip()); return 0; } @@ -1296,6 +1295,7 @@ FCGI_API int fcgi_accept_request(fcgi_request *req) client_sa = sa; if (req->fd >= 0 && !fcgi_is_allowed()) { + fcgi_log(FCGI_ERROR, "Connection disallowed: IP address '%s' has been dropped.", fcgi_get_last_client_ip()); closesocket(req->fd); req->fd = -1; continue; -- 2.40.0