mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 16:33:16 +00:00
6c68f6ebec
MAP_EXTRA_CONNECT_HOSTS lets an operator name tile and style hosts beyond the ones TREK ships. The server adds them to the CSP connect-src and the client will only ask a GL renderer to draw what that list names, so both sides read entries through one grammar: a lower-case host name with at least two labels, an optional port and an optional leading wildcard over two or more labels. No scheme, path or user, so an entry can never widen the policy past a single host family. The parser returns the accepted hosts and the refused entries, for the boot check, and the app config field gets a Zod contract.