Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
KoMinkyu committed Oct 12, 2016
1 parent 6737c7d commit 00e9128
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions alertserver/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

@app.before_request
def limit_remote_addr():
"""Block all request if request's path is heading to limited path with non-trusted remote address."""
if (is_webhook_path(request.path) and
not is_trusted_remote_addrs(request.remote_addr)):
abort(403)
Expand Down

0 comments on commit 00e9128

Please sign in to comment.