mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Added backwards compatibility fix
This commit is contained in:
parent
ad3e4273a2
commit
9cba101b50
1 changed files with 4 additions and 1 deletions
|
|
@ -939,13 +939,16 @@ end
|
|||
|
||||
function vs_utils.load_module(name)
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/vulnerability_scan/modules/?.lua;".. package.path
|
||||
|
||||
-- Backwards compatibility
|
||||
if(name == "tcp_openports") then name = "tcp_portscan" end
|
||||
|
||||
return(require(name):new())
|
||||
end
|
||||
|
||||
-- **********************************************************
|
||||
|
||||
function vs_utils.discover_open_portsx(host)
|
||||
|
||||
local result,duration,scan_result,num_open_ports,num_vulnerabilities_found, cve, udp_ports, tcp_ports, scan_ports, network_alert_store,now
|
||||
|
||||
local scan_module = vs_utils.load_module("tcp_portscan")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue