mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fix error while adding a custom proto in non-existing protos.txt
This commit is contained in:
parent
49ac0c498a
commit
c55aaa4391
1 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ function protos_utils.parseProtosTxt()
|
|||
local path = getProtosFile()
|
||||
|
||||
if not ntop.exists(path) then
|
||||
return {}
|
||||
return {}, {}
|
||||
end
|
||||
|
||||
local f = io.open(path, "r")
|
||||
|
|
@ -77,7 +77,7 @@ function protos_utils.parseProtosTxt()
|
|||
|
||||
if f == nil then
|
||||
traceError(TRACE_ERROR, TRACE_CONSOLE, string.format("[protos.txt] Could not open '%s' (invalid permissions?)", path))
|
||||
return {}
|
||||
return {}, {}
|
||||
end
|
||||
|
||||
for full_line in f:lines() do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue