mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Possible fix for https curl error
This commit is contained in:
parent
9bdff1b170
commit
9108018c43
2 changed files with 20 additions and 3 deletions
|
|
@ -394,6 +394,7 @@ local function deserializeAmPrefs(host_key, val, config_only)
|
|||
local v = json.decode(val)
|
||||
|
||||
if v then
|
||||
rv.host_key = host_key
|
||||
rv.show_iface = false
|
||||
rv.ifname = v.ifname or ''
|
||||
rv.threshold = tonumber(v.threshold) or 500
|
||||
|
|
@ -425,7 +426,7 @@ end
|
|||
function am_utils.getHosts(config_only, granularity)
|
||||
local hosts = ntop.getHashAllCache(am_hosts_key) or {}
|
||||
local rv = {}
|
||||
|
||||
|
||||
for host_key, val in pairs(hosts) do
|
||||
local host = deserializeAmPrefs(host_key, val, config_only)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue