[dreamwidth/dreamwidth] 9ff227: Consistently use LJ::get_remote_ip() and update PS...
Branch: refs/heads/main Home: https://github.com/dreamwidth/dreamwidth Commit: 9ff227cd9cf45d396c69789570567010986fb5e1 https://github.com/dreamwidth/dreamwidth/commit/9ff227cd9cf45d396c69789570567010986fb5e1 Author: Mark Smith mark@dreamwidth.org Date: 2026-02-15 (Sun, 15 Feb 2026)
Changed paths: M cgi-bin/Plack/Middleware/DW/Sysban.pm M cgi-bin/Plack/Middleware/DW/XForwardedFor.pm M doc/PLACK.md
Log Message:
Consistently use LJ::get_remote_ip() and update PSGI env in XForwardedFor
Sysban was reading $env->{REMOTE_ADDR} directly instead of using LJ::get_remote_ip(). Also have XForwardedFor set $env->{REMOTE_ADDR} after resolving the real client IP so that PSGI infrastructure like the Starman access log sees the correct address.
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
To unsubscribe from these emails, change your notification settings at https://github.com/dreamwidth/dreamwidth/settings/notifications
