Skip to content

feat: add trusted-proxy-header for vless/trojan listener - #3081

Open
MakostaDev wants to merge 2 commits into
MetaCubeX:Alphafrom
MakostaDev:trusted-proxy-header
Open

feat: add trusted-proxy-header for vless/trojan listener#3081
MakostaDev wants to merge 2 commits into
MetaCubeX:Alphafrom
MakostaDev:trusted-proxy-header

Conversation

@MakostaDev

@MakostaDev MakostaDev commented Aug 5, 2026

Copy link
Copy Markdown

Adding a trusted-proxy-header option for the vless/trojan listeners, allowing mihomo to read the real client IP when it sits behind a reverse proxy (e.g. Nginx/Caddy) that terminates TLS in front of mihomo and forwards the original client IP via a header such as X-Forwarded-For.

The Hysteria2 Realm listener already implements this, so the logic was moved into common utils and reused here.

However, this currently only applies to the WS/gRPC/xHTTP transports

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.

1 participant