diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-12-28 01:13:47 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-12-28 01:13:47 +0300 |
commit | 37ec4be9af18a2174161a809fdfcb113a2bcf780 (patch) | |
tree | 753c2177602091853e5a2ee370b0942f5b1a6dad /suddenly-opened-ports-checker | |
parent | 91177bcf42f7a599e6f456b3ffdcbe8b8e0c6407 (diff) |
add 'ignore' to the config
Diffstat (limited to 'suddenly-opened-ports-checker')
-rwxr-xr-x | suddenly-opened-ports-checker | 3 |
1 files changed, 1 insertions, 2 deletions
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) |