mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add warning when disabling secure.enable_security (#9943)
This commit is contained in:
parent
a2199bf622
commit
0f1f8e4a0f
1 changed files with 4 additions and 0 deletions
|
@ -62,6 +62,10 @@ ServerScripting::ServerScripting(Server* server):
|
||||||
|
|
||||||
if (g_settings->getBool("secure.enable_security")) {
|
if (g_settings->getBool("secure.enable_security")) {
|
||||||
initializeSecurity();
|
initializeSecurity();
|
||||||
|
} else {
|
||||||
|
warningstream << "\\!/ Mod security should never be disabled, as it allows any mod to "
|
||||||
|
<< "access the host machine."
|
||||||
|
<< "Mods should use minetest.request_insecure_environment() instead \\!/" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
lua_getglobal(L, "core");
|
lua_getglobal(L, "core");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue