Fixes application page not correctly saving the changes (#7024)

This commit is contained in:
MatteoBiscosi 2022-12-13 15:56:43 +01:00
parent 4f29489ef5
commit af27e50699
2 changed files with 12 additions and 12 deletions

View file

@ -1340,18 +1340,6 @@ end
-- ##############################################
function setCustomnDPIProtoCategory(app_id, new_cat_id)
ntop.setnDPIProtoCategory(app_id, new_cat_id)
local key = getCustomnDPIProtoCategoriesKey(ifid)
-- NOTE: when the ndpi struct changes, the custom associations are
-- reloaded by Ntop::loadProtocolsAssociations
ntop.setHashCache(key, tostring(app_id), tostring(new_cat_id));
end
-- ##############################################
-- "Some Very Long String" -> "Some Ver...g String"
function shortenCollapse(s, max_len)
local replacement = "..."