forked from MTSR/telegram
Make http api local to prevent security breach
This commit is contained in:
parent
0172e7e740
commit
c00d1e340a
2
init.lua
2
init.lua
@ -22,7 +22,7 @@ local http_in_progress = false
|
|||||||
|
|
||||||
local JSON = dofile(modpath .. "/JSON.lua")
|
local JSON = dofile(modpath .. "/JSON.lua")
|
||||||
|
|
||||||
http_api = minetest.request_http_api()
|
local http_api = minetest.request_http_api()
|
||||||
if not http_api then
|
if not http_api then
|
||||||
error("HTTP API cannot be enabled. Add the mods to trusted.")
|
error("HTTP API cannot be enabled. Add the mods to trusted.")
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user