Block IP collection from settings

This commit is contained in:
Oliver Kamer 2021-01-19 21:41:54 +01:00
parent 174a386f54
commit d67e14b08f
No known key found for this signature in database
GPG Key ID: 7E5529F8081D427F

View File

@ -116,7 +116,7 @@ def ingress_request(
return
session = Session.objects.create(
service=service,
ip=ip if service.collect_ips else None,
ip=ip if service.collect_ips and not settings.BLOCK_ALL_IPS else None,
user_agent=user_agent,
identifier=identifier.strip(),
browser=ua.browser.family or "",