summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-rpc/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-05-18 16:58:17 +0200
committerJo-Philipp Wich <jo@mein.io>2018-05-18 16:58:17 +0200
commit364c271a84210a841762beeb2dd0715cd7c2e240 (patch)
tree12e9dd2ea56b1dc4ab356901fcf96edae0d59e3c /modules/luci-mod-rpc/luasrc
parent828202ef5237f48e6f53d15ca198e2c6815b7cd7 (diff)
luci-mod-rpc: fix unresolved controller reference in rpc_auth()
Fixes the following error: .../rpc.lua:85: attempt to index global 'ctrl' (a nil value) Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-rpc/luasrc')
-rw-r--r--modules/luci-mod-rpc/luasrc/controller/rpc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-mod-rpc/luasrc/controller/rpc.lua b/modules/luci-mod-rpc/luasrc/controller/rpc.lua
index 5df5e375a..1e8038b28 100644
--- a/modules/luci-mod-rpc/luasrc/controller/rpc.lua
+++ b/modules/luci-mod-rpc/luasrc/controller/rpc.lua
@@ -56,6 +56,7 @@ function index()
end
function rpc_auth()
+ local ctrl = require "luci.controller.rpc"
local jsonrpc = require "luci.jsonrpc"
local http = require "luci.http"
local sys = require "luci.sys"