summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS.rst1
-rw-r--r--docs/admin/engines/settings.rst8
-rw-r--r--searx/plugins/tor_check.py17
3 files changed, 18 insertions, 8 deletions
diff --git a/AUTHORS.rst b/AUTHORS.rst
index 75bc9f87b..f6c04a35f 100644
--- a/AUTHORS.rst
+++ b/AUTHORS.rst
@@ -168,3 +168,4 @@ features or generally made searx better:
- Ahmad Alkadri `<https://github.com/ahmad-alkadri>`_
- Milad Laly @Milad-Laly
- @llmII
+- @blob42 `<https://blob42.xyz>`_
diff --git a/docs/admin/engines/settings.rst b/docs/admin/engines/settings.rst
index 97f5ef63e..e8d00ec1f 100644
--- a/docs/admin/engines/settings.rst
+++ b/docs/admin/engines/settings.rst
@@ -657,8 +657,9 @@ and can relied on the default configuration :origin:`searx/settings.yml` using:
``engines:``
With ``use_default_settings: true``, each settings can be override in a
similar way, the ``engines`` section is merged according to the engine
- ``name``. In this example, SearXNG will load all the engine and the arch linux
- wiki engine has a :ref:`token <private engines>`:
+ ``name``. In this example, SearXNG will load all the default engines, will
+ enable the ``bing`` engine and define a :ref:`token <private engines>` for
+ the arch linux engine:
.. code-block:: yaml
@@ -668,6 +669,9 @@ and can relied on the default configuration :origin:`searx/settings.yml` using:
engines:
- name: arch linux wiki
tokens: ['$ecretValue']
+ - name: bing
+ disabled: false
+
``engines:`` / ``remove:``
It is possible to remove some engines from the default settings. The following
diff --git a/searx/plugins/tor_check.py b/searx/plugins/tor_check.py
index 7d50bbcb5..ffc105eef 100644
--- a/searx/plugins/tor_check.py
+++ b/searx/plugins/tor_check.py
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
# lint: pylint
-"""A plugin to check if the ip address of the request is a TOR exit node if the
+"""A plugin to check if the ip address of the request is a Tor exit-node if the
user searches for ``tor-check``. It fetches the tor exit node list from
https://check.torproject.org/exit-addresses and parses all the IPs into a list,
then checks if the user's IP address is in it.
@@ -26,8 +26,8 @@ name = gettext("Tor check plugin")
'''Translated name of the plugin'''
description = gettext(
- "This plugin checks if the address of the request is a TOR exit node, and"
- " informs the user if it is, like check.torproject.org but from searxng."
+ "This plugin checks if the address of the request is a Tor exit-node, and"
+ " informs the user if it is; like check.torproject.org, but from SearXNG."
)
'''Translated description of the plugin.'''
@@ -60,7 +60,8 @@ def post_search(request, search):
# No answer, return error
search.result_container.answers["tor"] = {
"answer": gettext(
- "The TOR exit node list (https://check.torproject.org/exit-addresses) is unreachable."
+ "The could not download the list of Tor exit-nodes"
+ " from https://check.torproject.org/exit-addresses."
)
}
return True
@@ -75,13 +76,17 @@ def post_search(request, search):
if ip_address in node_list:
search.result_container.answers["tor"] = {
"answer": gettext(
- "You are using TOR. Your IP address seems to be: {ip_address}.".format(ip_address=ip_address)
+ "You are using Tor. It looks like you have this external IP address: {ip_address}.".format(
+ ip_address=ip_address
+ )
)
}
else:
search.result_container.answers["tor"] = {
"answer": gettext(
- "You are not using TOR. Your IP address seems to be: {ip_address}.".format(ip_address=ip_address)
+ "You are not using Tor. You have this external IP address: {ip_address}.".format(
+ ip_address=ip_address
+ )
)
}