mirror of
https://github.com/neocities/neocities.git
synced 2025-08-07 10:05:02 +02:00
fix for blocked ip updater
This commit is contained in:
parent
d422795c04
commit
688dd6ea62
1 changed files with 1 additions and 1 deletions
2
Rakefile
2
Rakefile
|
@ -41,7 +41,7 @@ end
|
|||
desc 'Update banned IPs list'
|
||||
task :update_blocked_ips => [:environment] do
|
||||
uri = URI.parse('http://www.stopforumspam.com/downloads/listed_ip_90.zip')
|
||||
blocked_ips_zip = Tempfile.new('blockedipszip', Dir.tmpdir, 'wb')
|
||||
blocked_ips_zip = Tempfile.new('blockedipszip', Dir.tmpdir)
|
||||
blocked_ips_zip.binmode
|
||||
|
||||
Net::HTTP.start(uri.host, uri.port) do |http|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue