Skip to content
Permalink
Browse files

Add warning when disabling secure.enable_security (#9943)

  • Loading branch information
rubenwardy committed Jun 20, 2020
1 parent a2199bf commit 0f1f8e4a0fed72f0f2223448f34406eeb26f9b7b
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/script/scripting_server.cpp
@@ -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");

0 comments on commit 0f1f8e4

Please sign in to comment.
You can’t perform that action at this time.