Merge pull request #247 from VakarisZ/TCP_scanner_sleep_bugfix

TCP scanner sleep bugfix
This commit is contained in:
Daniel Goldberg 2019-01-28 17:49:39 +02:00 committed by GitHub
commit e90f11cab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,8 @@ class NetworkScanner(object):
break
if WormConfiguration.tcp_scan_interval:
time.sleep(WormConfiguration.tcp_scan_interval)
# time.sleep uses seconds, while config is in milliseconds
time.sleep(WormConfiguration.tcp_scan_interval/1000)
@staticmethod
def _is_any_ip_in_subnet(ip_addresses, subnet_str):