From c00d1e340ad9e83f6a51cc5942e12fd8218e5a78 Mon Sep 17 00:00:00 2001 From: neko259 Date: Mon, 21 Jan 2019 20:48:42 +0200 Subject: [PATCH] Make http api local to prevent security breach --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index f14dbba..278b552 100644 --- a/init.lua +++ b/init.lua @@ -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