mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-11 18:41:13 +09:00
c2d012cdf9
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.