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 c155e0f6c484ad1d531655be39f98568bb633deb..c4331093b7527bcc8002de9c4360abfa0f0f107a 100644 (file)
@@ -12,5 +12,5 @@ logpath = <%= @logpath %>
 maxretry = <%= @maxretry %>
 <% end -%>
 <% if @ignoreips -%>
-ignoreip = <%= @ignoreips.join(",") %>
+ignoreip = <%= @ignoreips.sort.join(",") %>
 <% end -%>