mirror of
https://github.com/transmission/transmission.git
synced 2026-09-28 11:02:39 +02:00
* refactor: collapse is_martian_addr() into is_valid_for_peers() is_martian_addr() was a separate function for historical reasons: it started out as an LTEP-only check and was folded into the peer address validation later. Keeping it apart split one decision across two places, with the loopback rule in the helper and the rest at the call site. Inline the checks and keep the attribution comment. No behavior change; the new test covers the current rules, including which peer sources may name a loopback address. Fixes #7848 * refactor: drop is_martian_addr() attribution comment None of Juliusz Chroboczek's original isMartianAddr() remains after the overhaul, so the MIT attribution no longer applies to this code.