mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-19 15:19:55 +00:00
Merge SSH wildcard authorized users across matching rules
This commit is contained in:
@@ -62,7 +62,12 @@ func applyResolvedRuleToState(
|
||||
return
|
||||
}
|
||||
state.sshEnabled = true
|
||||
state.authorizedUsers[auth.Wildcard] = cb.getAllowedUserIDs()
|
||||
if state.authorizedUsers[auth.Wildcard] == nil {
|
||||
state.authorizedUsers[auth.Wildcard] = make(map[string]struct{})
|
||||
}
|
||||
for userID := range cb.getAllowedUserIDs() {
|
||||
state.authorizedUsers[auth.Wildcard][userID] = struct{}{}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user