Skip to content

Commit 4b9558d

Browse files
committed
Bugfix: add line break after --compact logs, closes #32
1 parent c09d22e commit 4b9558d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

analyze_hosts.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
sys.stderr.flush()
4545

4646

47-
VERSION = '0.25'
47+
VERSION = '0.25.1'
4848
ALLPORTS = [25, 80, 443, 465, 993, 995, 8080]
4949
SCRIPTS = """banner,dns-nsid,dns-recursion,http-cisco-anyconnect,\
5050
http-php-version,http-title,http-trace,ntp-info,ntp-monlist,nbstat,\
@@ -256,13 +256,10 @@ def compact_strings(strings, options):
256256
"""
257257
Remove as much unnecessary strings as possible.
258258
"""
259-
# remove ' (OK)'
260-
# remove ^SF:
261-
# remove
262259
if not options['compact']:
263260
return strings
264261
return '\n'.join([x for x in strings.splitlines() if x and
265-
not x.startswith('#')])
262+
not x.startswith('#')]) + '\n'
266263

267264

268265
def do_curl(host, port, options, logfile):

0 commit comments

Comments
 (0)