Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Notifer

  • Loading branch information...
commit 9c503485d76f24c5629531cf1a569659c3e35405 1 parent d272191
@eladmeidar authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/rack/contrib/deflect.rb
View
1  lib/rack/contrib/deflect.rb
@@ -102,6 +102,7 @@ def watch
def block!
return if blocked?
log "blocked #{@remote_addr}"
+ Notifier.deliver_ip_blocked(ip_address, Socket.gethostname, map[:request_uris])
map[:block_expires] = Time.now + options[:block_duration]
end
Please sign in to comment.
Something went wrong with that request. Please try again.