From 37ec4be9af18a2174161a809fdfcb113a2bcf780 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Tue, 28 Dec 2021 01:13:47 +0300 Subject: add 'ignore' to the config --- suddenly-opened-ports-checker | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'suddenly-opened-ports-checker') diff --git a/suddenly-opened-ports-checker b/suddenly-opened-ports-checker index 4cf423c..b4c1972 100755 --- a/suddenly-opened-ports-checker +++ b/suddenly-opened-ports-checker @@ -3,7 +3,6 @@ import logging import yaml import math -from pprint import pprint from argparse import ArgumentParser from lib.worker import Worker from lib.results import Results @@ -54,7 +53,7 @@ def main(): workers = [] for name, data in config['servers'].items(): - w = Worker(name, data['host'], data['opened'], + w = Worker(name, data['host'], data['opened'], data['ignore'], concurrency=int(data['concurrency']) if 'concurrency' in data else args.concurrency, timeout=int(data['timeout']) if 'timeout' in data else args.timeout) workers.append(w) -- cgit v1.2.3