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:
luk3yx 2018-09-18 07:47:19 +12:00 committed by sfan5
parent fa040eb085
commit 8808bb8911
1 changed files with 1 additions and 0 deletions

View File

@ -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.")