mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Do not send telemetry data in offline mode
This commit is contained in:
parent
bd615ef48d
commit
af5ded3231
1 changed files with 4 additions and 0 deletions
|
|
@ -15,6 +15,10 @@ local TELEMETRY_RECORDS_SENT = "ntopng.cache.telemetry_data_sent"
|
|||
local TELEMETRY_MAX_NUM_RECORDS = 5
|
||||
|
||||
function telemetry_utils.telemetry_enabled()
|
||||
if ntop.isOffline() then
|
||||
return false
|
||||
end
|
||||
|
||||
local tm = ntop.getPref(TELEMETRY_ENABLED_KEY)
|
||||
|
||||
return tm == "1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue