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

Đang mở
#10 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

@shiwng đang làm issue này rồi.

Từ ngày 26/11/2026.

  • #13 của @shiwng — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
networking

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
3
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CodingRule/SixM

Tất cả issue của CodingRule/SixM

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.