PATH:
opt
/
imunify360-webshield
/
lualib
/
resty
/
core
local base = require "resty.core.base" local get_request = base.get_request do local keys = {'create', 'yield', 'resume', 'status', 'wrap'} local get_raw_phase = ngx.get_raw_phase for _, key in ipairs(keys) do local std = coroutine['_' .. key] local ours = coroutine['__' .. key] coroutine[key] = function (...) local r = get_request() if r ~= nil then local ctx = get_raw_phase(r) if ctx ~= 0x020 and ctx ~= 0x040 then return ours(...) end end return std(...) end end package.loaded.coroutine = coroutine end return { version = base.version }
[-] shdict.lua
[edit]
[-] hash.lua
[edit]
[-] response.lua
[edit]
[-] uri.lua
[edit]
[-] regex.lua
[edit]
[-] phase.lua
[edit]
[-] socket.lua
[edit]
[-] exit.lua
[edit]
[-] time.lua
[edit]
[-] utils.lua
[edit]
[-] worker.lua
[edit]
[-] base.lua
[edit]
[-] misc.lua
[edit]
[-] param.lua
[edit]
[-] coroutine.lua
[edit]
[-] request.lua
[edit]
[-] ctx.lua
[edit]
[+]
..
[-] ndk.lua
[edit]
[-] var.lua
[edit]
[-] base64.lua
[edit]