forked from Mirrorlandia_minetest/mesecons
Mark LuaController memory as private
If LuaControllers handle sensitive information, hacked clients could get this information from the LuaController. Marking the memory as private fixes this and saves a small amount of bandwidth.
This commit is contained in:
parent
fa040eb085
commit
8808bb8911
@ -552,6 +552,7 @@ local function save_memory(pos, meta, mem)
|
||||
|
||||
if (#memstring <= memsize_max) then
|
||||
meta:set_string("lc_memory", memstring)
|
||||
meta:mark_as_private("lc_memory")
|
||||
else
|
||||
print("Error: Luacontroller memory overflow. "..memsize_max.." bytes available, "
|
||||
..#memstring.." required. Controller overheats.")
|
||||
|
Loading…
Reference in New Issue
Block a user