Skip to content

Commit 0315344

Browse files
committed
Made hostname map
1 parent 28060b4 commit 0315344

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

libnmap/parser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,9 @@ def __parse_hostnames(cls, scanhostnames_data):
359359
hostnames = []
360360
for hname in xelement:
361361
if hname.tag == "hostname":
362-
hostnames.append(hname.get("name"))
362+
hostname_dict = {'name':hname.get("name"), 'type':hname.get("type")}
363+
hostnames.append(hostname_dict)
364+
#hostnames.append(hname.get("name"))
363365
return hostnames
364366

365367
@classmethod

0 commit comments

Comments
 (0)