diff options
-rwxr-xr-x | awall-cli | 2 | ||||
-rw-r--r-- | awall/policy.lua | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -36,7 +36,7 @@ require 'awall.util' for switch, value in pairs(alt_getopt.get_opts(arg, short_opts, long_opts)) do if awall.util.contains({'a', 'l'}, switch) then mode = switch elseif awall.util.contains({'d', 'e', 'i', 'I'}, switch) then - table.insert(awall.util.params[switch], value) + table.insert(params[switch], value) elseif switch == 'F' then fallback = true elseif switch == 'o' then iptdir = value diff --git a/awall/policy.lua b/awall/policy.lua index b75ec92..0728769 100644 --- a/awall/policy.lua +++ b/awall/policy.lua @@ -132,7 +132,7 @@ function PolicySet:enable(name) target = lfs.currentdir()..'/'..target end - pid, stdin, stdout = lpc.run('ln', '-s', target, self.confdir) + local pid, stdin, stdout = lpc.run('ln', '-s', target, self.confdir) stdin:close() stdout:close() assert(lpc.wait(pid) == 0) |