summaryrefslogtreecommitdiff
path: root/suddenly-opened-ports-checker
diff options
context:
space:
mode:
Diffstat (limited to 'suddenly-opened-ports-checker')
-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)