Skip to content

修复ws X-Forwarded-For 读取#3546

Merged
RPRX merged 2 commits intoXTLS:mainfrom
Fangliding:xforward
Jul 17, 2024
Merged

修复ws X-Forwarded-For 读取#3546
RPRX merged 2 commits intoXTLS:mainfrom
Fangliding:xforward

Conversation

@Fangliding
Copy link
Member

@Fangliding Fangliding commented Jul 17, 2024

似乎在 c8f6ba9 删掉了看起来不必要的远程IP字段改为直接从conn读取 但是这个字段用于传递X-Forwarded-For里的信息 直接读等于无视了这个头里的信息 导致了#3545

@RPRX
Copy link
Member

RPRX commented Jul 17, 2024

本来主要怕把原有的 WSS Browser Dialer 改炸,没想到这里炸了

想把大的 PR 放 v1.9 就是这个原因,这下更新频率比隔壁都高了

@RPRX
Copy link
Member

RPRX commented Jul 17, 2024

@mmmray 顺便检查下 SplitHTTP 和 HTTPUpgrade 读取 X-Forwarded-For

@APT-ZERO

This comment was marked as off-topic.

@mmmray
Copy link
Contributor

mmmray commented Jul 17, 2024

How embarassing, thanks for fixing! I can confirm that SplitHTTP and HTTPUpgrade have the correct code. It seems there is a test for this behavior in all transports, but it is missing a proper assertion. Updated it.

@RPRX RPRX merged commit a7e198e into XTLS:main Jul 17, 2024
@Fangliding Fangliding deleted the xforward branch September 8, 2024 03:41
leninalive pushed a commit to amnezia-vpn/amnezia-xray-core that referenced this pull request Oct 29, 2024
it2konst pushed a commit to it2konst/gametunnel-core that referenced this pull request Mar 1, 2026
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.

4 participants