summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-11-05 15:13:55 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-11-05 15:13:55 +0100
commit4e0b179014ced8c16c90bdfd6d82df625fea47e9 (patch)
tree5c9bab8535942166472cd367c3941f564c78beb7
parent14f1f19dab3f41b5bcaeb40f63964c57eb1e25f2 (diff)
Some minor indenting and man page language style fixes
-rw-r--r--man5/opentracker.conf.54
-rw-r--r--src/ot_http.c4
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
70Specifies 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. 70Specifies 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.
71.Pp 71.Pp
72.It access.stats Ar ip_address_or_network 72.It access.stats Ar ip_address_or_network
73Specifies the IP address or network in CIDR notation allowed to fetch stats from opentracker. 73Specifies the IP address or network in CIDR notation allowed to fetch stats from opentracker, in case they are restricted.
74.Pp 74.Pp
75.It access.stats_path Ar path 75.It access.stats_path Ar path
76Specifies the path to the stats location. You can configure opentracker to appear anywhere on your tracker. Defaults to /stats. 76Specifies 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
79Specifies 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. 79Specifies 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.
80.Pp 80.Pp
81.It access.fullscrape Ar ip_address_or_network 81.It access.fullscrape Ar ip_address_or_network
82Specifies the IP address or network in CIDR notation allowed to fetch fullscrapes from opentracker, in case they're restricted. 82Specifies the IP address or network in CIDR notation allowed to fetch fullscrapes from opentracker, in case they are restricted.
83.Pp 83.Pp
84.It livesync.cluster.listen Ar ip_address:port 84.It livesync.cluster.listen Ar ip_address:port
85Specifies the IP address and port opentracker will listen on for incoming live 85Specifies 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
343 343
344 if (mode == TASK_STATS_TPB) { 344 if (mode == TASK_STATS_TPB) {
345#ifdef WANT_RESTRICT_FULLSCRAPE 345#ifdef WANT_RESTRICT_FULLSCRAPE
346 if (!accesslist_is_blessed(cookie->ip, OT_PERMISSION_MAY_FULLSCRAPE)) 346 if (!accesslist_is_blessed(cookie->ip, OT_PERMISSION_MAY_FULLSCRAPE))
347 HTTPERROR_403_IP; 347 HTTPERROR_403_IP;
348#endif 348#endif
349#ifdef WANT_COMPRESSION_GZIP 349#ifdef WANT_COMPRESSION_GZIP
350 ws->request[ws->request_size - 1] = 0; 350 ws->request[ws->request_size - 1] = 0;