Skip to content

Commit 8510546

Browse files
committed
Add log message when the IP is not allowed
1 parent 5b1dbdb commit 8510546

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cherokee/connection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2390,6 +2390,7 @@ cherokee_connection_check_ip_validation (cherokee_connection_t *conn, cherokee_c
23902390
return ret_ok;
23912391
}
23922392

2393+
LOG_ERROR_S(CHEROKEE_ERROR_CONNECTION_CHECK_IP);
23932394
conn->error_code = http_access_denied;
23942395
return ret_error;
23952396
}

cherokee/error_list.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,10 @@
981981
title = "Could not get virtual server: '%s'",
982982
desc = CODING_BUG)
983983

984+
e('CONNECTION_CHECK_IP',
985+
title = "The connection's IP is not allowed",
986+
desc = "This IP is not allowed, please check IP or subnet configuration.")
987+
984988

985989
# cherokee/ncpus.c
986990
#

0 commit comments

Comments
 (0)