Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add warning when disabling secure.enable_security (#9943)
- Loading branch information
Showing
with
4 additions
and
0 deletions.
-
+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"); |
|
|