diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2012-08-24 11:51:51 +0000 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2012-08-24 11:51:51 +0000 |
commit | 0ae7ea3188afd7b1e03ca5d31fd9b85503a79f21 (patch) | |
tree | 57a89f960e3bf068039ed30394448f448c763fe1 /awall-cli | |
parent | fef090cc803e7cc7bbce04fbf5787fea169f8114 (diff) | |
download | awall-0ae7ea3188afd7b1e03ca5d31fd9b85503a79f21.tar.bz2 awall-0ae7ea3188afd7b1e03ca5d31fd9b85503a79f21.tar.xz |
generate separate file for each ipsetv0.2.6
do not overwrite existing ipset files
Diffstat (limited to 'awall-cli')
-rwxr-xr-x | awall-cli | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -89,9 +89,7 @@ opts, opind = alt_getopt.get_opts(arg, short_opts, long_opts) for switch, value in pairs(opts) do if switch == 'f' then force = true elseif switch == 'V' then verify = true - elseif switch == 'o' then - iptdir = value - ipsfile = value..'/ipset' + elseif switch == 'o' then outputdir = value else table.insert(params[switch], value) end end @@ -192,7 +190,7 @@ if mode == 'dump' then elseif mode == 'translate' then if verify then config:test() end - config:dump(iptdir, ipsfile) + config:dump(outputdir) elseif mode == 'activate' then |