From 1dc71c4f0b3aa5f7c14163a5662b6f3578e31925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Fri, 5 Jul 2019 16:37:57 +0200 Subject: [PATCH] fix: Allow to disable scraping private IPs (async module). --- bin/async_scrape.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/async_scrape.py b/bin/async_scrape.py index 52edfaf4..616d45fb 100755 --- a/bin/async_scrape.py +++ b/bin/async_scrape.py @@ -11,6 +11,9 @@ from lookyloo.lookyloo import Lookyloo logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s', level=logging.INFO, datefmt='%I:%M:%S') +# Set it to True if your instance is publicly available so users aren't able to scan your internal network +only_global_lookups = False + class AsyncScraper(AbstractManager): @@ -18,7 +21,7 @@ class AsyncScraper(AbstractManager): super().__init__(loglevel) if not storage_directory: self.storage_directory = get_homedir() / 'scraped' - self.lookyloo = Lookyloo(loglevel=loglevel) + self.lookyloo = Lookyloo(loglevel=loglevel, only_global_lookups=only_global_lookups) def _to_run_forever(self): set_running('async_scrape')