32 lines
568 B
Lua
32 lines
568 B
Lua
--
|
|
-- Created by IntelliJ IDEA.
|
|
-- User: guang
|
|
-- Date: 16/9/22
|
|
-- Time: 下午6:25
|
|
-- To change this template use File | Settings | File Templates.
|
|
--
|
|
|
|
|
|
local lua_waf = require "core"
|
|
local iputils = require "iputils"
|
|
|
|
local waf = lua_waf:new("test")
|
|
local waf2 = lua_waf:new("jj")
|
|
|
|
for k, v in pairs(waf["config"]) do
|
|
print(k, v)
|
|
end
|
|
|
|
waf:set_option("active", true)
|
|
|
|
for k, v in pairs(waf["config"]) do
|
|
print(k, v)
|
|
end
|
|
print(waf.config.active)
|
|
|
|
-- waf:deny_cc()
|
|
-- waf2:deny_cc()
|
|
waf:log("hello world")
|
|
waf2:log("world")
|
|
print(iputils.ip2bin("192.168.1.1"))
|