Commit 8d78fb49 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

support for port ranges in service definitions

parent 932b4bad
...@@ -214,7 +214,9 @@ function Rule:servoptfrags() ...@@ -214,7 +214,9 @@ function Rule:servoptfrags()
if new or ports[sdef.proto][1] then if new or ports[sdef.proto][1] then
if sdef.port then if sdef.port then
util.extend(ports[sdef.proto], sdef.port) util.extend(ports[sdef.proto],
function(p) return string.gsub(p, '-', ':') end))
else ports[sdef.proto] = {} end else ports[sdef.proto] = {} end
end end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment