mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-12 19:42:02 +09:00
9f362d5be9
SaaS trims surrounding whitespace from src/dst entries before dispatching to the alias lookup, so `"tag:server "` resolves to the same tag and `" odin@example.com"` resolves to the same user. headscale was treating the untrimmed strings as literals, which either failed the tag/user lookup or dropped the affected node from every rule referencing it. Trim inside AliasEnc.UnmarshalJSON so ACL src/dst and SSH src/dst all benefit.