Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jul 17, 2024
Merged

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

merged 2 commits into from
Jul 17, 2024

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
Collaborator

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.

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