mirror of
https://github.com/juanfont/headscale.git
synced 2026-08-07 15:58:45 +09:00
7526401656
Generated API types have a pointer-receiver MarshalJSON that omits unset optional fields. The CLI marshalled them by value, so stdlib reflection called Opt*.MarshalJSON directly and failed with "unexpected end of JSON input", breaking every -o json/-o yaml command. Make values addressable first so the generated marshaler runs.