solving tor proxy for only_global_lookups

pull/201/head
Fafner [_KeyZee_] 2021-05-04 17:17:21 +02:00 committed by GitHub
parent be29f749cf
commit 97207b8f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 7 deletions

View File

@ -777,6 +777,7 @@ class Lookyloo():
splitted_url = urlsplit(url)
if splitted_url.netloc:
if splitted_url.hostname:
if splitted_url.hostname.split('.')[-1] != 'onion':
try:
ip = socket.gethostbyname(splitted_url.hostname)
except socket.gaierror: