summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbenpiano800 <51756721+benpiano800@users.noreply.github.com>2025-05-07 03:39:46 -0500
committerGitHub <noreply@github.com>2025-05-07 10:39:46 +0200
commitbc06b1aece43c50fa0dae7e6d90389814bebbc91 (patch)
tree62db6e1dd232a7e4da07a82049b37ed0215ed04d
parentff60fe635fc5792b45cef70cd7716b694901393c (diff)
[enh] plugins: tor_check: Add more keywords (#4726)
Previously, there was only one usable keyword for the tor_check plugin. Adding more keywords eliminates confusion.
-rw-r--r--searx/plugins/tor_check.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/plugins/tor_check.py b/searx/plugins/tor_check.py
index 6a24714c3..3338ff2ed 100644
--- a/searx/plugins/tor_check.py
+++ b/searx/plugins/tor_check.py
@@ -33,7 +33,7 @@ class SXNGPlugin(Plugin):
"""Rewrite hostnames, remove results or prioritize them."""
id = "tor_check"
- keywords = ["tor-check"]
+ keywords = ["tor-check", "tor_check", "torcheck", "tor", "tor check"]
def __init__(self, plg_cfg: "PluginCfg") -> None:
super().__init__(plg_cfg)
@@ -53,7 +53,7 @@ class SXNGPlugin(Plugin):
if search.search_query.pageno > 1:
return results
- if search.search_query.query.lower() == "tor-check":
+ if search.search_query.query.lower() in self.keywords:
# Request the list of tor exit nodes.
try: