mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Add missing make_graph_from_nmap_parser needed by some unittests
This commit is contained in:
parent
fc49e4ade6
commit
0c995f95d8
1 changed files with 5 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue