Skip to content

Commit 231f059

Browse files
committed
fcgi_is_allowed should not log error
1 parent 9dbf879 commit 231f059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/fastcgi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,6 @@ static int fcgi_is_allowed() {
12391239
}
12401240
#endif
12411241

1242-
fcgi_log(FCGI_ERROR, "Connection disallowed: IP address '%s' has been dropped.", fcgi_get_last_client_ip());
12431242
return 0;
12441243
}
12451244

@@ -1296,6 +1295,7 @@ FCGI_API int fcgi_accept_request(fcgi_request *req)
12961295

12971296
client_sa = sa;
12981297
if (req->fd >= 0 && !fcgi_is_allowed()) {
1298+
fcgi_log(FCGI_ERROR, "Connection disallowed: IP address '%s' has been dropped.", fcgi_get_last_client_ip());
12991299
closesocket(req->fd);
13001300
req->fd = -1;
13011301
continue;

0 commit comments

Comments
 (0)