summaryrefslogtreecommitdiff
path: root/mesecons_luacontroller
diff options
context:
space:
mode:
authorluk3yx <luk3yx@users.noreply.github.com>2018-09-18 07:47:19 +1200
committersfan5 <sfan5@live.de>2018-09-18 13:01:18 +0200
commit8808bb8911bc443a8cfb71a63b1feb5abeba5b17 (patch)
treea5b3ee3fcc0aeeb2f8a95ec60c94251085437bb1 /mesecons_luacontroller
parentfa040eb0855f1d11c7f2ce79566ffb10b8f02dc4 (diff)
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.
Diffstat (limited to 'mesecons_luacontroller')
-rw-r--r--mesecons_luacontroller/init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesecons_luacontroller/init.lua b/mesecons_luacontroller/init.lua
index 0f8adbc..a781e6f 100644
--- a/mesecons_luacontroller/init.lua
+++ b/mesecons_luacontroller/init.lua
@@ -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.")