diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-05 14:35:32 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-05 14:35:32 +0100 |
| commit | 6b4703f21deb0f140dbbeca682823f2b644a4e78 (patch) | |
| tree | d16f13d03626db155f291cbd6bd3f31a3a48105f /src/ot_http.c | |
| parent | 062696d31cc21e37b44e8c23e40ece9076cc22e5 (diff) | |
Actually implement the OT_PERMISSION_MAY_FULLSCRAPE mechanics and add a config file entry
Diffstat (limited to 'src/ot_http.c')
| -rw-r--r-- | src/ot_http.c | 5 |
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; |
