mtproto_proxy/doc
Sergey Prokhorov 4e0db66fc1
mtp_config: parse default DC id from Telegram config; drop get_netloc_safe; ETS protected
- parse_config/1 now returns {DefaultDc, Downstreams} using a single
  lists:foldl pass; the 'default X;' line sets the fallback DC id
- update_ids/3 stores {default_dc, DcId} in ETS alongside dc_ids
- get_default_dc/0 reads default_dc from ETS (safe from any process)
- get_downstream_safe/2 fallback uses get_default_dc() instead of
  random_choice; errors immediately if default == requested (avoid loop)
- get_netloc_safe/1 removed: dead code since 2018, never called
- ETS table changed from public to protected (only mtp_config writes)
- doc/handler-downstream-flow.md: new sequence diagram + update note
  about pool resolution fallback

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-11 18:35:02 +02:00
..
handler-downstream-flow.md mtp_config: parse default DC id from Telegram config; drop get_netloc_safe; ETS protected 2026-04-11 18:35:02 +02:00
migration-flow.md feat: transparent client migration on DC connection death 2026-04-08 00:46:56 +02:00