Révision 6793d286
Handle dport internally always as an array
templates/simplerule.epp | ||
---|---|---|
34 | 34 |
$_dst_hosts = undef |
35 | 35 |
} -%> |
36 | 36 |
<%- if $proto and $dport { |
37 |
if $dport =~ Array { |
|
38 |
$_dst_port = "${_proto} dport {${dport.join(', ')}}" |
|
39 |
} else { |
|
40 |
$_dst_port = "${_proto} dport $dport" |
|
41 |
} |
|
37 |
$_dst_port = "${_proto} dport {${Array($dport, true).join(', ')}}" |
|
42 | 38 |
} else { |
43 | 39 |
$_dst_port = undef |
44 | 40 |
} -%> |
Formats disponibles : Unified diff