added a more lightweight remote execution module
This commit is contained in:
parent
14580f7ce1
commit
8beb94836c
14
modules/applications/rexec.lua
Normal file
14
modules/applications/rexec.lua
Normal file
@ -0,0 +1,14 @@
|
||||
reP,tREs=4,{}
|
||||
s("rexec",function()
|
||||
while true do
|
||||
if ev[1] == "net_msg" then
|
||||
local V=false
|
||||
for k,v in ipairs(tREs) do if ev[2] == v then V=true end end
|
||||
if ev[3] == reP and V then
|
||||
ns(ev[2],ev[3],pcall(load(msg)))
|
||||
end
|
||||
end
|
||||
C.yield()
|
||||
end
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user