From 4e0b179014ced8c16c90bdfd6d82df625fea47e9 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Thu, 5 Nov 2026 15:13:55 +0100 Subject: Some minor indenting and man page language style fixes --- man5/opentracker.conf.5 | 4 ++-- src/ot_http.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/man5/opentracker.conf.5 b/man5/opentracker.conf.5 index db79d4b..472d83b 100644 --- a/man5/opentracker.conf.5 +++ b/man5/opentracker.conf.5 @@ -70,7 +70,7 @@ Specifies the path to the FIFO (named pipe) used for dynamic changesets to acces Specifies the path to the FIFO (named pipe) used for dynamic changesets to accesslists. Info hashes written to this FIFO will be removed from the main accesslist file. .Pp .It access.stats Ar ip_address_or_network -Specifies the IP address or network in CIDR notation allowed to fetch stats from opentracker. +Specifies the IP address or network in CIDR notation allowed to fetch stats from opentracker, in case they are restricted. .Pp .It access.stats_path Ar path Specifies the path to the stats location. You can configure opentracker to appear anywhere on your tracker. Defaults to /stats. @@ -79,7 +79,7 @@ Specifies the path to the stats location. You can configure opentracker to appea Specifies the IP address or network of the reverse proxies. Opentracker will take the X-Forwarded-For address instead of the source IP address. Can be added more than once. .Pp .It access.fullscrape Ar ip_address_or_network -Specifies the IP address or network in CIDR notation allowed to fetch fullscrapes from opentracker, in case they're restricted. +Specifies the IP address or network in CIDR notation allowed to fetch fullscrapes from opentracker, in case they are restricted. .Pp .It livesync.cluster.listen Ar ip_address:port Specifies the IP address and port opentracker will listen on for incoming live diff --git a/src/ot_http.c b/src/ot_http.c index cc11366..1b8f5ef 100644 --- a/src/ot_http.c +++ b/src/ot_http.c @@ -343,8 +343,8 @@ static ssize_t http_handle_stats(const int64_t sock, struct ot_workstruct *ws, c if (mode == TASK_STATS_TPB) { #ifdef WANT_RESTRICT_FULLSCRAPE - if (!accesslist_is_blessed(cookie->ip, OT_PERMISSION_MAY_FULLSCRAPE)) - HTTPERROR_403_IP; + if (!accesslist_is_blessed(cookie->ip, OT_PERMISSION_MAY_FULLSCRAPE)) + HTTPERROR_403_IP; #endif #ifdef WANT_COMPRESSION_GZIP ws->request[ws->request_size - 1] = 0; -- cgit v1.3