Block IP collection from settings
This commit is contained in:
parent
174a386f54
commit
d67e14b08f
@ -116,7 +116,7 @@ def ingress_request(
|
|||||||
return
|
return
|
||||||
session = Session.objects.create(
|
session = Session.objects.create(
|
||||||
service=service,
|
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,
|
user_agent=user_agent,
|
||||||
identifier=identifier.strip(),
|
identifier=identifier.strip(),
|
||||||
browser=ua.browser.family or "",
|
browser=ua.browser.family or "",
|
||||||
|
Loading…
Reference in New Issue
Block a user