Files
Nicholas Velten 794216d540 refactor: collapse is_martian_addr() into is_valid_for_peers() (#9096)
* 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.
2026-09-03 23:07:14 -05:00
..
2026-03-29 21:31:12 -05:00
2026-06-14 10:47:39 -05:00
2026-01-20 16:27:34 -06:00
2026-01-20 16:27:34 -06:00
2026-01-20 16:27:34 -06:00
2024-03-24 20:48:23 -05:00
2026-02-17 17:53:01 -06:00