mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Do not check for new major in offline mode
This commit is contained in:
parent
7fa999d848
commit
b38f5f4712
1 changed files with 5 additions and 1 deletions
|
|
@ -4058,6 +4058,11 @@ end
|
|||
--- @return string message If there is a new major release then return a non-nil string
|
||||
--- containing the update message.
|
||||
function check_latest_major_release()
|
||||
|
||||
if ntop.isOffline() then
|
||||
return nil
|
||||
end
|
||||
|
||||
-- get the latest major release
|
||||
local latest_version = ntop.getCache("ntopng.cache.major_release")
|
||||
|
||||
|
|
@ -4077,7 +4082,6 @@ function check_latest_major_release()
|
|||
end
|
||||
|
||||
return get_version_update_msg(info, latest_version)
|
||||
|
||||
end
|
||||
|
||||
-- ###########################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue