mirror of
				https://github.com/minetest-mods/mesecons.git
				synced 2025-11-03 20:45:26 +01:00 
			
		
		
		
	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:
		@@ -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.")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user