Gitlab will be down for a short time due to maintenance starting on Wed 2019-10-23 2:00AM UTC

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()
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
......
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