diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-03-31 11:34:09 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-03-31 19:07:51 +0300 |
commit | 217b5319f8adb7d979c17fa7eff34f0f7fa14a3f (patch) | |
tree | f8441c5037e9f51a975d684bd2bfc0dd0a8e6280 /awall/iptables.lua | |
parent | 385bd7791ee1a11a8ab017f260013b5d8080703f (diff) | |
download | awall-217b5319f8adb7d979c17fa7eff34f0f7fa14a3f.tar.bz2 awall-217b5319f8adb7d979c17fa7eff34f0f7fa14a3f.tar.xz |
make class tables callable
Diffstat (limited to 'awall/iptables.lua')
-rw-r--r-- | awall/iptables.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/awall/iptables.lua b/awall/iptables.lua index f4190f0..e8f9374 100644 --- a/awall/iptables.lua +++ b/awall/iptables.lua @@ -1,6 +1,6 @@ --[[ Iptables file dumper for Alpine Wall -Copyright (C) 2012-2013 Kaarle Ritvanen +Copyright (C) 2012-2014 Kaarle Ritvanen See LICENSE file for license details ]]-- @@ -142,15 +142,15 @@ end function backup() lfs.mkdir(backupdir) - Current.new():dump(backupdir) + Current():dump(backupdir) end function revert() - Backup.new():activate() + Backup():activate() end function flush() - local empty = IPTables.new() + local empty = IPTables() for family, params in pairs(families) do local success, lines = pcall(io.lines, params.procfile) if success then |