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)
self.ipset =
self.ipset =
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
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