Removed useless imports in lua code upping the memory usage

This commit is contained in:
Matteo Biscosi 2024-02-15 15:21:30 +00:00
parent 2f76c9bf4b
commit dbf4bf2a2b
53 changed files with 2981 additions and 3255 deletions

View file

@ -2,7 +2,6 @@
-- (C) 2021 - ntop.org
--
local os_utils = require("os_utils")
local http_lint = require "http_lint"
local protos_utils = {}
local proto_key = "ntopng.preferences.protos_list_id"
@ -167,6 +166,8 @@ end
-- ##############################################
function protos_utils.getProtosTxtRule(line)
local http_lint = require "http_lint"
line = trimString(line)
if isIPv4(line) or http_lint.validateNetwork(line) then