We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any issue to write banned IP entry to an error log ?
Something like that:
if ((((static_cast<webserver*>(cls))->default_policy == http_utils::ACCEPT) && ((static_cast<webserver*>(cls))->bans.count(ip_representation(addr))) && (!(static_cast<webserver*>(cls))->allowances.count(ip_representation(addr)))) || (((static_cast<webserver*>(cls))->default_policy == http_utils::REJECT) && ((!(static_cast<webserver*>(cls))->allowances.count(ip_representation(addr))) || ((static_cast<webserver*>(cls))->bans.count(ip_representation(addr)))))) { //log banned IP std::string msg = "IP '" + httpserver::http::get_ip_str(addr) + "' rejected\n"; webserver* dws = static_cast<webserver*>(cls); dws->log_error(msg); return MHD_NO; }
The text was updated successfully, but these errors were encountered:
etr
No branches or pull requests
Is there any issue to write banned IP entry to an error log ?
Something like that:
The text was updated successfully, but these errors were encountered: