When sending BAN IP messages to main receive a reply on whether further actions should continue

That allows to BAN a user even during an open connection.
This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-25 19:55:47 +01:00
parent 874d0ce0e2
commit 7a675ff5e2
13 changed files with 151 additions and 42 deletions

View File

@@ -140,7 +140,7 @@ int post_kkdcp_handler(worker_st *ws, unsigned http_ver)
return -1;
}
ws->ban_points += KKDCP_POINTS;
ws_add_score_to_ip(ws, KKDCP_POINTS, 0);
oclog(ws, LOG_HTTP_DEBUG, "HTTP processing kkdcp framed request: %u bytes", (unsigned)req->body_length);
ret = der_decode((uint8_t*)req->body, req->body_length, buf, &length, realm, sizeof(realm), &e);