cmd/statreceiver: enable lua libraries in lua config (#1919)

This commit is contained in:
JT Olio 2019-05-08 23:46:01 -06:00 committed by Egon Elbre
parent 03914d05c6
commit de81a89da4

View File

@ -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()