Update nmap_xml_parser.py

This commit is contained in:
Jake Miller 2018-07-23 20:24:41 -05:00 committed by GitHub
parent 92a993089a
commit 694763aacc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ def list_ip_addresses(data):
"""Parses the input data to display only the IP address information"""
ip_list = [item[0] for item in data]
sorted_set = sorted(set(ip_list))
addr_list = [ip for up in sorted_set]
addr_list = [ip for ip in sorted_set]
return addr_list