mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Removed useless imports in lua code upping the memory usage
This commit is contained in:
parent
2f76c9bf4b
commit
dbf4bf2a2b
53 changed files with 2981 additions and 3255 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue