Option to trust X-Forwarded-For behind a reverse proxy

未關閉
#10 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

@shiwng 已經在處理了。

開始於 2026年11月26日。

  • #13 來自 @shiwng —— 未關閉

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
rust
領域
networking

研究方向

Start by locating GetPlayerEndpoint, the ip: identifier handling, and the server configuration code that reads server.cfg; trace how connection headers reach those entry points. Add coverage for a trusted proxy, an untrusted source, and a two proxy chain, then update docs/hosting.md. The linked open pull request #13 indicates this work is already underway.

由索引模型根據 Issue 內容生成。

描述

enhancement good first issue hosting

Behind a TLS reverse proxy every player appears to connect from the proxy's address, because the server does not read X-Forwarded-For. GetPlayerEndpoint and the ip: identifier are then the same for everyone.

Wanted
  • A server.cfg setting listing trusted proxy addresses, off by default.
  • When the connection comes from a trusted proxy, take the client address from X-Forwarded-For (the right-most address not in the trusted list).
  • Never trust the header from any other source: it is trivially forged.
Done when

Tests cover a trusted proxy, an untrusted source sending the header, and a chain of two proxies. docs/hosting.md is updated.

主要語言
Rust
星號
3
分支
1
PR 合併指標
30 天內沒有已合併 PR

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

CodingRule/SixM 的其他 Issue

查看 CodingRule/SixM 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。