Skip to content

Commit

Permalink
Add warning when disabling secure.enable_security (#9943)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Jun 20, 2020
1 parent a2199bf commit 0f1f8e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/script/scripting_server.cpp
Expand Up @@ -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");
Expand Down

0 comments on commit 0f1f8e4

Please sign in to comment.