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>
This commit is contained in:
parent
828202ef52
commit
364c271a84
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user