We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28060b4 commit 0315344Copy full SHA for 0315344
1 file changed
libnmap/parser.py
@@ -359,7 +359,9 @@ def __parse_hostnames(cls, scanhostnames_data):
359
hostnames = []
360
for hname in xelement:
361
if hname.tag == "hostname":
362
- hostnames.append(hname.get("name"))
+ hostname_dict = {'name':hname.get("name"), 'type':hname.get("type")}
363
+ hostnames.append(hostname_dict)
364
+ #hostnames.append(hname.get("name"))
365
return hostnames
366
367
@classmethod
0 commit comments