mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-28 17:26:52 +09:00
SaaS rejects any hosts-table alias on an SSH rule dst with `invalid dst "alias"`, irrespective of whether the alias resolves to a single IP or a CIDR. headscale was resolving the alias through the same path as ACL dsts and accepting the policy. Validate at the per-SSH-rule pass so the error body matches SaaS. The existing host-alias-as-dst sshtest_test row tested the now-rejected shape and is dropped along with its unused commonHosts fixture.