Skip to content

Commit

Permalink
Don't track IPs for API admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Jan 9, 2025
1 parent e0c3490 commit 4b96132
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions synapse/storage/databases/main/client_ips.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,10 @@ async def insert_client_ip(
if user_agent == "sync-v3-proxy-":
return

# Beeper hack: don't track admin API IPs as not user generated requests
if user_id == "@admin-api:beeper.com":
return

if not now:
now = int(self._clock.time_msec())
key = (user_id, access_token, ip)
Expand Down

0 comments on commit 4b96132

Please sign in to comment.