Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Optionally log X-Real-IP header.#521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
joseluisq merged 2 commits intostatic-web-server:masterfromdctaf:iss520
Feb 2, 2025

Conversation

dctaf
Copy link
Contributor

Description

Adds a --log-x-real-ip option and documentation to enable logging of the
X-Real-IP header in a manner similar to the logging of the X-Forwarded-For
header (and --log-forwarded-for) header. --trustied-proxies is respected.

Related Issue

#520

Motivation and Context

For various reasons, many infrastructures use X-Real-IP instead of X-Forwarded-For, and it is useful to have the X-Real-IP value logged.

How Has This Been Tested?

Manually.

@semanticdiff-comSemanticDiff.com
Copy link

semanticdiff-combot commentedFeb 2, 2025
edited
Loading

Review changes with  SemanticDiff

Changed Files
FileStatus
  src/log_addr.rs  9% smaller
  docs/content/configuration/command-line-arguments.mdUnsupported file format
  docs/content/configuration/environment-variables.mdUnsupported file format
  docs/content/features/logging.mdUnsupported file format
  src/handler.rs  0% smaller
  src/server.rs  0% smaller
  src/settings/cli.rs  0% smaller
  src/settings/file.rs  0% smaller
  src/settings/mod.rs  0% smaller
  src/testing.rs  0% smaller

@joseluisqjoseluisq added enhancementNew feature or request v2v2 release labelsFeb 2, 2025
Copy link
Collaborator

@joseluisqjoseluisq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks fine to me.
Good that you clarified theX-Forwarded-For too.

Thanks!

@joseluisqjoseluisq merged commit134db39 intostatic-web-server:masterFeb 2, 2025
25 of 34 checks passed
@joseluisqjoseluisq added this to thev2.36.0 milestoneFeb 6, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@joseluisqjoseluisqjoseluisq approved these changes

Assignees
No one assigned
Labels
enhancementNew feature or requestv2v2 release
Projects
None yet
Milestone
v2.36.0
Development

Successfully merging this pull request may close these issues.

2 participants
@dctaf@joseluisq

[8]ページ先頭

©2009-2025 Movatter.jp