From 4280a4e11f2efe23a2a00a2bb5bdf0039b38ffef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 4 Aug 2022 21:28:47 +0200 Subject: [PATCH] fix: Support for document on public instances. --- bin/async_capture.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/async_capture.py b/bin/async_capture.py index aa9c327..a013927 100755 --- a/bin/async_capture.py +++ b/bin/async_capture.py @@ -138,7 +138,9 @@ class AsyncCapture(AbstractManager): url = f'http://{url}' splitted_url = urlsplit(url) if self.only_global_lookups: - if splitted_url.netloc: + if url.startswith('data') or url.startswith('file'): + pass + elif splitted_url.netloc: if splitted_url.hostname and splitted_url.hostname.split('.')[-1] != 'onion': try: ip = socket.gethostbyname(splitted_url.hostname)