mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-19 11:57:07 +09:00
policy/v2: compile a rule-less policy as allow-all per node too
compileFilterRulesForNode missed the case d2a85b1d1 fixed.
This commit is contained in:
1 parent
9332d2d022
commit
9f88e7ddcf
1 file changed
+1
-1
@@ -196,7 +196,7 @@ func (pol *Policy) compileFilterRulesForNode(
|
||||
node types.NodeView,
|
||||
nodes views.Slice[types.NodeView],
|
||||
) []tailcfg.FilterRule {
|
||||
if pol == nil {
|
||||
if pol == nil || (pol.ACLs == nil && pol.Grants == nil) {
|
||||
return noRulesFilter(users, nodes)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user