mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixes protos ID not assigned in case of 0 ID
This commit is contained in:
parent
7d6b49fbfb
commit
ccce98a264
1 changed files with 1 additions and 1 deletions
|
|
@ -353,7 +353,7 @@ function protos_utils.generateProtosTxt(rules, defined_protos)
|
|||
proto_id = ntop.getHashCache(proto_key, proto_name) or ''
|
||||
end
|
||||
|
||||
if isEmptyString(proto_id) then
|
||||
if isEmptyString(proto_id) or proto_id == 0 then
|
||||
proto_id = tonumber(ntop.getCache(proto_last_id)) or 0
|
||||
if proto_id == 0 then
|
||||
proto_id = first_proto_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue