summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--awall/policy.lua3
1 files changed, 2 insertions, 1 deletions
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)