Improvements to reduce un-necessary data returned to lua from C++

This commit is contained in:
Luca Deri 2025-10-24 15:18:06 +02:00
parent a497434a41
commit 8dc4561faf
12 changed files with 370 additions and 388 deletions

View file

@ -74,7 +74,7 @@ end
-- ################################################
function getMacHosts(mac, additional_ip)
local mac_hosts = interface.getMacHosts(mac)
local mac_hosts = interface.getMacHosts(mac, false)
local num_hosts = table.len(mac_hosts)
local url, hosts
@ -99,7 +99,7 @@ function getMacHosts(mac, additional_ip)
hosts = i18n("n_more_objects", {
label = first_host["ip"],
num = num_hosts,
object = i18n("hosts")
object = string.lower(i18n("hosts"))
})
end
end