Skip to content

Add logging.xffUseFirstIPAddress config option#24

Merged
robstradling merged 2 commits into
mainfrom
option_for_which_xff_ip
Jun 9, 2026
Merged

Add logging.xffUseFirstIPAddress config option#24
robstradling merged 2 commits into
mainfrom
option_for_which_xff_ip

Conversation

@robstradling

Copy link
Copy Markdown
Member

No description provided.

Configures which X-Forwarded-For entry to use for client IP logging.
When false (default), uses the last entry (most likely added by a
trusted proxy). When true, uses the first entry (original client's
claimed IP).

Also reverts the XFF index change from #4 back to len-1 default.
Document the new config option in both the example config.yaml
and the Logging configuration reference table.
@robstradling robstradling merged commit ef2c3fc into main Jun 9, 2026
3 checks passed
@robstradling robstradling deleted the option_for_which_xff_ip branch June 9, 2026 20:49
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