Remove check for '_rdns'
httpx 0.21.2 doesn't provide the '_rdns' attribute anymore.
This commit is contained in:
parent
b91cc7e0ae
commit
03150ce88c
@ -167,9 +167,6 @@ class Network:
|
|||||||
for transport in client._mounts.values(): # pylint: disable=protected-access
|
for transport in client._mounts.values(): # pylint: disable=protected-access
|
||||||
if isinstance(transport, AsyncHTTPTransportNoHttp):
|
if isinstance(transport, AsyncHTTPTransportNoHttp):
|
||||||
continue
|
continue
|
||||||
if not getattr(transport, '_rdns', False):
|
|
||||||
result = False
|
|
||||||
break
|
|
||||||
else:
|
else:
|
||||||
response = await client.get('https://check.torproject.org/api/ip')
|
response = await client.get('https://check.torproject.org/api/ip')
|
||||||
if not response.json()['IsTor']:
|
if not response.json()['IsTor']:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user