]> git.openstreetmap.org Git - rails.git/commitdiff
Update for removal of netmask from ACLs
authorTom Hughes <tom@compton.nu>
Wed, 8 Feb 2012 16:07:59 +0000 (16:07 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 8 Feb 2012 16:07:59 +0000 (16:07 +0000)
script/update-spam-blocks

index 903fc9b8a35a61d0b07f72779434eeea61597521..381ef3c1a335c0f9095287bef9290424f08fff22 100755 (executable)
@@ -15,7 +15,6 @@ addresses.each do |address,count|
   if count > 2
     acl = Acl.find(:first, :conditions => {
       :address => address,
-      :netmask => "255.255.255.255"
     })
 
     unless acl
@@ -32,7 +31,6 @@ addresses.each do |address,count|
 end
 
 acls = Acl.find(:all, :conditions => {
-  :netmask => "255.255.255.255",
   :k => "no_account_creation",
   :v => "auto_spam_block"
 })