mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-13 17:09:07 +02:00
With the embedded IdP, management.json can leave out the HttpConfig section, and ApplyEmbeddedIdPConfig creates it later. Command-line overrides run before that, so --letsencrypt-domain, or --cert-file with --cert-key, dereferenced a nil HttpConfig and management crashed at startup. Create the section only when one of those flags writes to it, so a config without TLS flags keeps HttpConfig unset.