mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix various bugs and add ports in the host scan modal. (#7698)
This commit is contained in:
parent
a7c49205ef
commit
a93201e42f
20 changed files with 540 additions and 109 deletions
|
|
@ -29,8 +29,8 @@ local host = _GET["am_host"]
|
|||
|
||||
local page = _GET["page"] or ('overview')
|
||||
local measurement = _GET["measurement"]
|
||||
|
||||
local base_url = script_manager.getMonitorUrl("active_monitoring_monitor.lua") .. "?ifid=" .. getInterfaceId(ifname)
|
||||
local ifid = getInterfaceId(ifname)
|
||||
local base_url = script_manager.getMonitorUrl("active_monitoring_monitor.lua") .. "?ifid=" .. ifid
|
||||
local url = base_url
|
||||
local info = ntop.getInfo()
|
||||
local measurement_info
|
||||
|
|
@ -134,7 +134,8 @@ elseif ((page == "historical") and (host ~= nil) and (measurement_info ~= nil))
|
|||
graph_utils.drawNewGraphs({ifid = -1, host = host_value})
|
||||
elseif (page == "scan_hosts") then
|
||||
local json_context = {
|
||||
csrf = ntop.getRandomCSRFValue()
|
||||
csrf = ntop.getRandomCSRFValue(),
|
||||
ifid = ifid
|
||||
}
|
||||
template.render("pages/vue_page.template", { vue_page_name = "PageHostsToScan", page_context = json.encode(json_context) })
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue