No bind address also listens on v6
[mirror/dsa-puppet.git] / modules / xinetd / templates / service.erb
index a0cc45a..d460f82 100644 (file)
@@ -12,7 +12,7 @@ service <%= scope.lookupvar('port') %>
        protocol        = <%= scope.lookupvar('protocol') %>
 <%- if scope.lookupvar('flags') != '' -%>
        flags           = <%= scope.lookupvar('flags') %>
-<%- elsif scope.lookupvar('bind') =~  /:/ -%>
+<%- elsif scope.lookupvar('bind') =~  /:/ or scope.lookupvar('bind') == "" -%>
        flags           = IPv6
 <%- end -%>
        wait            = <%= scope.lookupvar('wait') %>