mirror of
https://github.com/home-assistant/core.git
synced 2026-07-09 15:55:29 +01:00
73806810cf
The recovery config saved only the network address of each trusted proxy (``ip.network_address``), dropping the prefix length. A configured network like 10.0.0.0/24 was stored as 10.0.0.0 and read back as 10.0.0.0/32, so recovery mode narrowed the trusted proxies to a single host and rejected requests from the real proxy. Store the full network (``str(ip)``) so the config round-trips losslessly. The restored value is re-validated through HTTP_SCHEMA, which accepts both forms, so this is safe on read back. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>