pull/216/head
midoks 3 years ago
parent 24fe8b6f5f
commit 8e1d95bf82
  1. 2
      plugins/op_waf/waf/lua/common.lua
  2. 2
      plugins/op_waf/waf/lua/init.lua

@ -34,7 +34,7 @@ end
function _M.getInstance(self) function _M.getInstance(self)
if rawget(self, "instance") == nil then if rawget(self, "instance") == nil then
rawset(self, "instance", self.new()) rawset(self, "instance", self:new())
end end
assert(self.instance ~= nil) assert(self.instance ~= nil)
return self.instance return self.instance

@ -1,8 +1,10 @@
local json = require "cjson" local json = require "cjson"
local ngx_match = ngx.re.find local ngx_match = ngx.re.find
local __C = require "common" local __C = require "common"
-- print(json.encode(__C))
local C = __C:getInstance() local C = __C:getInstance()
local config = require "waf_config" local config = require "waf_config"

Loading…
Cancel
Save