Skip to content

Commit

Permalink
Optimize access on DISALLOWED_IPS
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Jun 5, 2014
1 parent 7846820 commit f1be7bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sentry/http.py
Expand Up @@ -16,7 +16,7 @@
from urlparse import urlparse


DISALLOWED_IPS = map(IPNetwork, settings.SENTRY_DISALLOWED_IPS)
DISALLOWED_IPS = set((IPNetwork(i) for i in settings.SENTRY_DISALLOWED_IPS))


class NoRedirectionHandler(urllib2.HTTPErrorProcessor):
Expand Down

0 comments on commit f1be7bb

Please sign in to comment.