Skip to content

Fix ASGI remote Address handling#341

Open
M-Hassan-Raza wants to merge 2 commits intosoynatan:masterfrom
M-Hassan-Raza:fix/asgi-request-remote-ip
Open

Fix ASGI remote Address handling#341
M-Hassan-Raza wants to merge 2 commits intosoynatan:masterfrom
M-Hassan-Raza:fix/asgi-request-remote-ip

Conversation

@M-Hassan-Raza
Copy link
Copy Markdown

This makes ASGI request logging honor DJANGO_EASY_AUDIT_REMOTE_ADDR_HEADER, matching the existing WSGI behavior.

It also cleans up the request signal a bit by precompiling URL regex patterns and splitting the request metadata logic into small helpers.

honor the configured header for asgi requests
cache request url regex patterns
add tests and a readme note
@M-Hassan-Raza M-Hassan-Raza changed the title Fix ADGI remote Address handling Fix ASGI remote Address handling Mar 24, 2026
keep url pattern caching dynamic
normalize forwarded ip values
replace the white box url test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant