Goal
Add an optional per-HTTP-tracker configuration setting that allows the tracker to use the IP address provided in the ip GET parameter of the announce request instead of always deriving the peer IP from the TCP connection. Analogous to opentracker's WANT_IP_FROM_QUERY_STRING.
Background
The ip GET parameter (BEP 3) is currently parsed but silently ignored. A user requested the ability to honor it (see #163).
Scope
- Add
use_ip_from_query_string boolean config field (disabled by default)
- When enabled and a valid IP is provided, use it as the peer address
- Document security implications (IP spoofing risk)
- Add contract tests for enabled/disabled behavior
Depends on: #1985 (rename peer_addr → ip)
Full spec: docs/issues/drafts/1978-add-config-option-to-use-ip-from-announce-query-string/ISSUE.md
Goal
Add an optional per-HTTP-tracker configuration setting that allows the tracker to use the IP address provided in the
ipGET parameter of the announce request instead of always deriving the peer IP from the TCP connection. Analogous to opentracker'sWANT_IP_FROM_QUERY_STRING.Background
The
ipGET parameter (BEP 3) is currently parsed but silently ignored. A user requested the ability to honor it (see #163).Scope
use_ip_from_query_stringboolean config field (disabled by default)Depends on: #1985 (rename
peer_addr→ip)Full spec: docs/issues/drafts/1978-add-config-option-to-use-ip-from-announce-query-string/ISSUE.md