summaryrefslogtreecommitdiff
path: root/searx/botdetection
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2025-08-09 23:30:48 +0200
committerGitHub <noreply@github.com>2025-08-09 23:30:48 +0200
commit935f3fe332551482d6c8a3d5b690f12d5ad67e90 (patch)
tree5da0a8a3fedbcad30ed767f24428372222b1659b /searx/botdetection
parentce8929cabe27c7cf0bfb21b47786c7442ffb3712 (diff)
[fix] limiter: trusted proxies doc-string (#5104)
Diffstat (limited to 'searx/botdetection')
-rw-r--r--searx/botdetection/trusted_proxies.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/botdetection/trusted_proxies.py b/searx/botdetection/trusted_proxies.py
index 7191f0eb2..ae2945af3 100644
--- a/searx/botdetection/trusted_proxies.py
+++ b/searx/botdetection/trusted_proxies.py
@@ -20,15 +20,15 @@ if t.TYPE_CHECKING:
class ProxyFix:
- """A middleware like the ProxyFix_ class, where the `x_for` argument is
- replaced by a method that determines the number of trusted proxies via
- the `botdetection.trusted_proxies` setting.
+ """A middleware like the ProxyFix_ class, where the ``x_for`` argument is
+ replaced by a method that determines the number of trusted proxies via the
+ ``botdetection.trusted_proxies`` setting.
.. sidebar:: :py:obj:`flask.Request.remote_addr`
SearXNG uses Werkzeug's ProxyFix_ (with it default ``x_for=1``).
- The remote IP (py:obj:`flask.Request.remote_addr`) of the request is taken
+ The remote IP (:py:obj:`flask.Request.remote_addr`) of the request is taken
from (first match):
- X-Forwarded-For_: If the header is set, the first untrusted IP that comes