diff options
-rw-r--r-- | awall/model.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/awall/model.lua b/awall/model.lua index db5f5a1..704f068 100644 --- a/awall/model.lua +++ b/awall/model.lua @@ -214,7 +214,9 @@ function Rule:servoptfrags() if new or ports[sdef.proto][1] then if sdef.port then - util.extend(ports[sdef.proto], sdef.port) + util.extend(ports[sdef.proto], + util.maplist(sdef.port, + function(p) return string.gsub(p, '-', ':') end)) else ports[sdef.proto] = {} end end |