mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-19 11:57:07 +09:00
CreateAPIKey and CreatePreAuthKey declared a zero-valued time.Time and passed its address to the state layer, so a request that omitted the expiration persisted 0001-01-01 instead of NULL. Both key types were then rejected as already-expired on first use. Pass the request body's *time.Time straight through (nil when omitted). Signed-off-by: Seena Fallah <seenafallah@gmail.com>