mirror of
https://github.com/kepler155c/opus
synced 2026-12-06 05:05:23 +00:00
1.12 updates
This commit is contained in:
1 parent
8db4fed19a
commit
bbcb8ecd6e
1 file changed
+3
-1
@@ -31,10 +31,12 @@ local function snmpConnection(socket)
|
||||
socket:write('pong')
|
||||
|
||||
elseif msg.type == 'script' then
|
||||
local fn, err = loadstring(msg.args, 'script')
|
||||
local env = setmetatable(Util.shallowCopy(_ENV), { __index = _G })
|
||||
local fn, err = load(msg.args, 'script', nil, env)
|
||||
if fn then
|
||||
kernel.run({
|
||||
fn = fn,
|
||||
env = env,
|
||||
title = 'script',
|
||||
})
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user