mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Remove check for '_rdns'
httpx 0.21.2 doesn't provide the '_rdns' attribute anymore.
This commit is contained in:
parent
b91cc7e0ae
commit
03150ce88c
1 changed files with 0 additions and 3 deletions
|
@ -167,9 +167,6 @@ class Network:
|
|||
for transport in client._mounts.values(): # pylint: disable=protected-access
|
||||
if isinstance(transport, AsyncHTTPTransportNoHttp):
|
||||
continue
|
||||
if not getattr(transport, '_rdns', False):
|
||||
result = False
|
||||
break
|
||||
else:
|
||||
response = await client.get('https://check.torproject.org/api/ip')
|
||||
if not response.json()['IsTor']:
|
||||
|
|
Loading…
Add table
Reference in a new issue