Sort ignored addresses
authorTom Hughes <tom@compton.nu>
Sat, 25 Mar 2017 10:50:56 +0000 (10:50 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 25 Mar 2017 10:51:11 +0000 (10:51 +0000)
cookbooks/fail2ban/templates/default/jail.erb

index c155e0f..c433109 100644 (file)
@@ -12,5 +12,5 @@ logpath = <%= @logpath %>
 maxretry = <%= @maxretry %>
 <% end -%>
 <% if @ignoreips -%>
-ignoreip = <%= @ignoreips.join(",") %>
+ignoreip = <%= @ignoreips.sort.join(",") %>
 <% end -%>