Projet

Général

Profil

Révision 6793d286

ID6793d28675445d3b6d3785c4f1d1f9a12edf6b78
Parent 467ea4e2
Enfant fb58f7b3

Ajouté par Nacho Barrientos il y a plus de 4 ans

Handle dport internally always as an array

Voir les différences:

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