49 def post_search(self, request:
"SXNG_Request", search:
"SearchWithPlugins") -> EngineResults:
52 if search.search_query.pageno > 1:
55 if search.search_query.query.lower()
in self.
keywords:
59 resp = get(url_exit_list)
60 node_list = re.findall(reg, resp.text)
64 msg = gettext(
"Could not download the list of Tor exit-nodes from")
65 results.add(results.types.Answer(answer=f
"{msg} {url_exit_list}"))
68 real_ip = ip_address(address=str(request.remote_addr)).compressed
70 if real_ip
in node_list:
71 msg = gettext(
"You are using Tor and it looks like you have the external IP address")
72 results.add(results.types.Answer(answer=f
"{msg} {real_ip}"))
75 msg = gettext(
"You are not using Tor and you have the external IP address")
76 results.add(results.types.Answer(answer=f
"{msg} {real_ip}"))