Skip to content

Conversation

@RPRX
Copy link
Member

@RPRX RPRX commented Nov 21, 2025

Replaced by #5331

@RPRX RPRX merged commit 2ff670e into main Nov 21, 2025
76 of 78 checks passed
@RPRX RPRX deleted the discardXForwardedFor branch November 21, 2025 06:54
@RPRX RPRX changed the title Sockopt config: Add discardXForwardedFor (for XHTTP, WS, HU) Sockopt config: Add discardXForwardedFor (for XHTTP, WS, HU inbounds) Nov 21, 2025
@Fangliding
Copy link
Member

我记得ngx之类的软件是添加一个信任的XF头源IP 不过这样又要引入那堆烂ip matcher了

@RPRX
Copy link
Member Author

RPRX commented Nov 22, 2025

我记得ngx之类的软件是添加一个信任的XF头源IP 不过这样又要引入那堆烂ip matcher了

想过但很麻烦,不过想到了一个好办法,服务端设置看到哪些 header 时就信任 XFF,一般来说 CDN 是自己的账号可以加请求头

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.

3 participants