mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-23 14:56:49 +09:00
feat: add autogroup:self (#2789)
This commit is contained in:
1 parent
fddc7117e4
commit
c2a58a304d
15 files changed
+1448
-26
No files matched your search
@@ -793,6 +793,11 @@ func (s *State) Filter() ([]tailcfg.FilterRule, []matcher.Match) {
|
||||
return s.polMan.Filter()
|
||||
}
|
||||
|
||||
// FilterForNode returns filter rules for a specific node, handling autogroup:self per-node.
|
||||
func (s *State) FilterForNode(node types.NodeView) ([]tailcfg.FilterRule, error) {
|
||||
return s.polMan.FilterForNode(node)
|
||||
}
|
||||
|
||||
// NodeCanHaveTag checks if a node is allowed to have a specific tag.
|
||||
func (s *State) NodeCanHaveTag(node types.NodeView, tag string) bool {
|
||||
return s.polMan.NodeCanHaveTag(node, tag)
|
||||
|
||||
Reference in new issue
Block a user