TGViewer
Project X Channel Project X Channel @projectxtls · 30K subscribers
Post #2738 9.18K
Project X Channel 💬 New comment on Xray-core#6110 Remove `xray.cone.disabled` env var by @RPRX @Meo597 要不在哪先加个合适的 warning 吧,以后再设成默认不信任 X-Forwarded-For Reply to this message to post a comment on GitHub.
其实有可能很快,甚至下个版本开始就默认不信任 X-Forwarded-For,建议现在就加上 sockopt.trustedXForwardedFor,详见 https://github.com/XTLS/Xray-core/pull/5331 ,这 PR 去年就合了
GitHub Sockopt config: Add `trustedXForwardedFor` (for XHTTP, WS, HU inbounds) by RPRX · Pull Request #5331 · XTLS/Xray-core Fixes #5101 (comment) 如上链接所述,XHTTP、WS、HU 这三个入站有一个问题是默认读取请求方 HTTP 头内的 X-Forwarded-For 并覆写 SourceIP 原意是获取请求方的真实 IP,因为 CDN 默认会加它,还有 Nginx 等 HTTP 反代软件需要自己配置 但如果前面没有任何一个可信任的源加了它,比如 REALITY 直连,则由于它的优先级最高...
  • 👍 13
  • ❤ 1
  • 👏 1
More from @projectxtls
  1. Oct 12, 2026💬 New comment on Xray-core#6748 XDRIVE transport: Add the Google Drive and "template" bac…
  2. Oct 12, 2026💬 New comment on Xray-core#6748 XDRIVE transport: Add the Google Drive and "template" bac…
  3. Oct 12, 2026💬 New comment on Xray-core#6748 XDRIVE transport: Add the Google Drive and "template" bac…
  4. Oct 12, 2026💬 New comment on Xray-core#6748 XDRIVE transport: Add the Google Drive and "template" bac…
  5. Oct 7, 2026有没有一种可能我早就不想理这俩智障了,无奈这俩脑残到处造谣我“刻意隐瞒”一个没几个人用的 bug,这奇葩逻辑真的没有导致它们猪脑过载吗?到处造谣真就不用承担后果吗?这两件事永远没完…
  6. Oct 7, 2026正如同我早就说了我根本没有必要“刻意隐瞒”一个没几个人用的 bug 一样,我也早就说了 Cherry / drownrat 以为的我小号根本不是我的,现在截图也有了毒誓也发了,倒是…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →