diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-05 15:13:55 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-05 15:13:55 +0100 |
| commit | 4e0b179014ced8c16c90bdfd6d82df625fea47e9 (patch) | |
| tree | 5c9bab8535942166472cd367c3941f564c78beb7 | |
| parent | 14f1f19dab3f41b5bcaeb40f63964c57eb1e25f2 (diff) | |
Some minor indenting and man page language style fixes
| -rw-r--r-- | man5/opentracker.conf.5 | 4 | ||||
| -rw-r--r-- | 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 | |||
| 70 | 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. | 70 | 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. |
| 71 | .Pp | 71 | .Pp |
| 72 | .It access.stats Ar ip_address_or_network | 72 | .It access.stats Ar ip_address_or_network |
| 73 | Specifies the IP address or network in CIDR notation allowed to fetch stats from opentracker. | 73 | Specifies 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 |
| 76 | Specifies the path to the stats location. You can configure opentracker to appear anywhere on your tracker. Defaults to /stats. | 76 | 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 | |||
| 79 | 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. | 79 | 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. |
| 80 | .Pp | 80 | .Pp |
| 81 | .It access.fullscrape Ar ip_address_or_network | 81 | .It access.fullscrape Ar ip_address_or_network |
| 82 | Specifies the IP address or network in CIDR notation allowed to fetch fullscrapes from opentracker, in case they're restricted. | 82 | Specifies 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 |
| 85 | Specifies the IP address and port opentracker will listen on for incoming live | 85 | 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 | |||
| 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; |
