mirror of https://github.com/CIRCL/lookyloo
Merge pull request #201 from FafnerKeyZee/patch-4
solving tor proxy for only_global_lookupspull/203/head
commit
318cc7cf9c
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue