From 4e0cecf82513b8315b9285b693755daba6461758 Mon Sep 17 00:00:00 2001 From: Chris Zheng Date: Thu, 6 Jan 2022 19:28:33 +0800 Subject: [PATCH] adding io to redis --- .gitmodules | 3 +++ deps/luasocket | 1 + src/scripting.c | 1 + 3 files changed, 5 insertions(+) create mode 160000 deps/luasocket diff --git a/.gitmodules b/.gitmodules index b118886194b..2541f4da801 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "deps/LuaJIT"] path = deps/LuaJIT url = git@github.com:zcaudate/LuaJIT.git +[submodule "deps/luasocket"] + path = deps/luasocket + url = https://github.com/diegonehab/luasocket.git diff --git a/deps/luasocket b/deps/luasocket new file mode 160000 index 00000000000..5b18e475f38 --- /dev/null +++ b/deps/luasocket @@ -0,0 +1 @@ +Subproject commit 5b18e475f38fcf28429b1cc4b17baee3b9793a62 diff --git a/src/scripting.c b/src/scripting.c index fc47cf5add7..c7902148c36 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -1069,6 +1069,7 @@ void luaLoadLibraries(lua_State *lua) { #if 1 /* Stuff that we don't load currently, for sandboxing concerns. */ luaLoadLib(lua, LUA_LOADLIBNAME, luaopen_package); luaLoadLib(lua, LUA_OSLIBNAME, luaopen_os); + luaLoadLib(lua, LUA_IOLIBNAME, luaopen_io); #endif }