mirror of
https://github.com/searxng/searxng.git
synced 2024-11-29 14:11:02 +00:00
[fix] typo in searx/plugins/tor_check.py
Related: https://github.com/searxng/searxng/pull/2189 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
b22355503f
commit
bb83036f48
1 changed files with 3 additions and 4 deletions
|
@ -60,8 +60,7 @@ def post_search(request, search):
|
||||||
# No answer, return error
|
# No answer, return error
|
||||||
search.result_container.answers["tor"] = {
|
search.result_container.answers["tor"] = {
|
||||||
"answer": gettext(
|
"answer": gettext(
|
||||||
"The could not download the list of Tor exit-nodes"
|
"Could not download the list of Tor exit-nodes from: https://check.torproject.org/exit-addresses"
|
||||||
" from https://check.torproject.org/exit-addresses."
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
return True
|
return True
|
||||||
|
@ -76,7 +75,7 @@ def post_search(request, search):
|
||||||
if ip_address in node_list:
|
if ip_address in node_list:
|
||||||
search.result_container.answers["tor"] = {
|
search.result_container.answers["tor"] = {
|
||||||
"answer": gettext(
|
"answer": gettext(
|
||||||
"You are using Tor. It looks like you have this external IP address: {ip_address}.".format(
|
"You are using Tor and it looks like you have this external IP address: {ip_address}".format(
|
||||||
ip_address=ip_address
|
ip_address=ip_address
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -84,7 +83,7 @@ def post_search(request, search):
|
||||||
else:
|
else:
|
||||||
search.result_container.answers["tor"] = {
|
search.result_container.answers["tor"] = {
|
||||||
"answer": gettext(
|
"answer": gettext(
|
||||||
"You are not using Tor. You have this external IP address: {ip_address}.".format(
|
"You are not using Tor and you have this external IP address: {ip_address}".format(
|
||||||
ip_address=ip_address
|
ip_address=ip_address
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue