Add warning when disabling secure.enable_security (#9943)

This commit is contained in:
rubenwardy 2020-06-20 13:21:38 +01:00 committed by GitHub
parent a2199bf622
commit 0f1f8e4a0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -62,6 +62,10 @@ ServerScripting::ServerScripting(Server* server):
if (g_settings->getBool("secure.enable_security")) {
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");