summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-03-18 04:52:36 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-03-18 04:52:36 +0300
commit8dfe5e01143dbf54b4985e063ce37bbac2fa6b43 (patch)
treef034ae38a4aa8cf7552f53482e909abe76afa50d
parent9bdf3e70ee7b28c67e3b783d92a170806f126494 (diff)
-rwxr-xr-xsuddenly-opened-ports-checker4
1 files changed, 3 insertions, 1 deletions
diff --git a/suddenly-opened-ports-checker b/suddenly-opened-ports-checker
index f70cee5..01c4e37 100755
--- a/suddenly-opened-ports-checker
+++ b/suddenly-opened-ports-checker
@@ -57,7 +57,9 @@ def main():
workers = []
for name, data in config['servers'].items():
- w = Worker(name, data['host'], data['opened'], data['ignore'],
+ w = Worker(name, data['host'],
+ opened=data['opened'],
+ ignore=data['ignore'] if 'ignore' in data else None,
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)