Sockopt config: Add discardXForwardedFor (for XHTTP, WS, HU inbounds)#5325
Merged
Sockopt config: Add discardXForwardedFor (for XHTTP, WS, HU inbounds)#5325
discardXForwardedFor (for XHTTP, WS, HU inbounds)#5325Conversation
discardXForwardedFor (for XHTTP, WS, HU)discardXForwardedFor (for XHTTP, WS, HU inbounds)
RPRX
added a commit
that referenced
this pull request
Nov 21, 2025
Member
|
我记得ngx之类的软件是添加一个信任的XF头源IP 不过这样又要引入那堆烂ip matcher了 |
Member
Author
想过但很麻烦,不过想到了一个好办法,服务端设置看到哪些 header 时就信任 XFF,一般来说 CDN 是自己的账号可以加请求头 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaced by #5331