Fixes MAC settings not changed (#6916)

This commit is contained in:
MatteoBiscosi 2022-10-03 17:19:08 +02:00
parent 47339bd34c
commit 19065241bb
2 changed files with 6 additions and 6 deletions

View file

@ -880,6 +880,12 @@ function getCustomDeviceType(mac)
return tonumber(ntop.getPref(getCustomDeviceKey(mac)))
end
-- #############################################
function setCustomDeviceType(mac, device_type)
ntop.setPref(getCustomDeviceKey(mac), tostring(device_type))
end
-- ##############################################
-- @brief Compute and return the difference, in seconds, between the local time of this instance and GMT