Commit 9825fc4d authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

use class model in ipset module

parent 1db655ba
......@@ -119,7 +119,7 @@ function Config:init(confdirs)
end
end
self.ipset = awall.ipset.new(self.input.ipset)
self.ipset = awall.ipset.IPSet.new(self.input.ipset)
end
function Config:dump(iptdir, ipsfile)
......
......@@ -7,13 +7,11 @@ Licensed under the terms of GPL2
module(..., package.seeall)
local IPSet = {}
require 'awall.object'
function new(config)
local res = {config=config}
setmetatable(res, {__index=IPSet})
return res
end
IPSet = awall.object.class(awall.object.Object)
function IPSet:init(config) self.config = config end
function IPSet:commands()
local res = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment