cmd/statreceiver: enable lua libraries in lua config (#1919)
This commit is contained in:
parent
03914d05c6
commit
de81a89da4
@ -60,6 +60,7 @@ func (scope *Scope) register(name string, val interface{}, pusher func(l *lua.St
|
||||
// Run runs the Lua source represented by in
|
||||
func (scope *Scope) Run(in io.Reader) error {
|
||||
l := lua.NewState()
|
||||
lua.OpenLibraries(l)
|
||||
luar.SetOptions(l, luar.Options{AllowUnexportedAccess: true})
|
||||
|
||||
scope.mu.Lock()
|
||||
|
Loading…
Reference in New Issue
Block a user