Sean-Der / fail2rest

REST server for fail2ban
107 stars 24 forks source link

Fix nill/null value of IPList & failRegexes #5

Closed djengineerllc closed 10 years ago

djengineerllc commented 10 years ago

Initialize IPList to an empty array if the IPList is nil/null.

Sean-Der commented 10 years ago

Both these changes look great to me!

I believe it is idiomatic to have fail2go return nil instead of any empty slice, but I will have to ask in #go-nuts to find out the answer. But for now this fixes both issues, thanks @djengineerllc