Skip to content

Commit

Permalink
Add log message when the IP is not allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
byshen committed May 2, 2021
1 parent 5b1dbdb commit eab0baa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cherokee/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -2390,6 +2390,7 @@ cherokee_connection_check_ip_validation (cherokee_connection_t *conn, cherokee_c
return ret_ok;
}

LOG_ERROR_S(CHEROKEE_ERROR_CONNECTION_CHECK_IP);
conn->error_code = http_access_denied;
return ret_error;
}
Expand Down
4 changes: 4 additions & 0 deletions cherokee/error_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,10 @@
title = "Could not get virtual server: '%s'",
desc = CODING_BUG)

e('CONNECTION_INVALID_IP',
title = "The connection's IP is not allowed",
desc = "This IP is not allowed, please check IP or subnet configuration.")


# cherokee/ncpus.c
#
Expand Down

0 comments on commit eab0baa

Please sign in to comment.