Обновить dollhouse/crates/dollhouse-backend/src/services/lua.rs

This commit is contained in:
pwn
2025-12-14 11:24:13 +03:00
parent a378c25871
commit 26849eb35f

View File

@@ -54,11 +54,6 @@ impl LuaService {
"math",
"tonumber",
"tostring",
"setmetatable",
"getmetatable",
"rawset",
"rawget",
"rawequal",
];
let allowed_globals_clone1 = allowed_globals.clone();
@@ -79,7 +74,17 @@ impl LuaService {
)?;
let allowed_globals_clone2 = allowed_globals.clone();
let dangerous = vec!["io", "os", "debug", "package"];
let dangerous = vec![
"io",
"os",
"debug",
"package",
"setmetatable",
"getmetatable",
"rawset",
"rawget",
"rawequal",
];
g_mt.set(
"__index",