mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 22:21:29 +00:00
Add missing make_graph_from_nmap_parser needed by some unittests
This commit is contained in:
@@ -272,3 +272,8 @@ def make_graph_from_hosts(hosts):
|
||||
graph.set_main_node(main_node)
|
||||
|
||||
return graph
|
||||
|
||||
|
||||
def make_graph_from_nmap_parser(parser):
|
||||
return make_graph_from_hosts(
|
||||
parser.get_root().search_children('host', deep=True))
|
||||
|
||||
Reference in New Issue
Block a user