Make http api local to prevent security breach

This commit is contained in:
neko259 2019-01-21 20:48:42 +02:00
parent 0172e7e740
commit c00d1e340a

View File

@ -22,7 +22,7 @@ local http_in_progress = false
local JSON = dofile(modpath .. "/JSON.lua")
http_api = minetest.request_http_api()
local http_api = minetest.request_http_api()
if not http_api then
error("HTTP API cannot be enabled. Add the mods to trusted.")
end