Implements AJAX refresh of hosts custom column

This commit is contained in:
Simone Mainardi 2019-02-20 13:16:10 +01:00
parent c40bfb1a8e
commit 6d7d6c87f6
4 changed files with 25 additions and 7 deletions

View file

@ -2,7 +2,7 @@
-- (C) 2013-18 - ntop.org
--
dirs = ntop.getDirs()
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
@ -10,7 +10,7 @@ require "flow_utils"
local json = require ("dkjson")
host_info = url2hostinfo(_GET)
local host_info = url2hostinfo(_GET)
if((host_info ~= nil) and (host_info["host"] ~= nil)) then
interface.select(ifname)