summaryrefslogtreecommitdiff
path: root/src/ot_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ot_http.c')
-rw-r--r--src/ot_http.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ot_http.c b/src/ot_http.c
index 533a876..d2dad67 100644
--- a/src/ot_http.c
+++ b/src/ot_http.c
@@ -402,6 +402,11 @@ static ssize_t http_handle_fullscrape(const int64_t sock, struct ot_workstruct *
402 struct http_data *cookie = fdstate_cookie(sock); 402 struct http_data *cookie = fdstate_cookie(sock);
403 int format = 0; 403 int format = 0;
404 404
405#ifdef WANT_RESTRICT_FULLSCRAPE
406 if (!accesslist_is_blessed(cookie->ip, OT_PERMISSION_MAY_FULLSCRAPE))
407 HTTPERROR_403_IP;
408#endif
409
405#ifdef WANT_MODEST_FULLSCRAPES 410#ifdef WANT_MODEST_FULLSCRAPES
406 { 411 {
407 ot_scrape_log this_peer, *new_peer; 412 ot_scrape_log this_peer, *new_peer;