From 03e9ab3ad5af054792aef3aeeb977cc665f301cf Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Tue, 28 Aug 2012 07:08:44 +0000 Subject: handle boolean values in policy files correctly --- awall/policy.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awall/policy.lua b/awall/policy.lua index ba56630..4ac8613 100644 --- a/awall/policy.lua +++ b/awall/policy.lua @@ -52,7 +52,8 @@ function PolicyConfig:expand() end end - return value ~= '' and value or nil + if value == '' then return end + return value end return expand(self.data) -- cgit v1.2.3