mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-29 13:28:03 -05:00
feat: add invalid and valid tags to grpc response
This commit is contained in:
@@ -280,7 +280,11 @@ func (api headscaleV1APIServer) ListMachines(
|
||||
|
||||
response := make([]*v1.Machine, len(machines))
|
||||
for index, machine := range machines {
|
||||
response[index] = machine.toProto()
|
||||
m := machine.toProto()
|
||||
validTags, invalidTags := getTags(*api.h.aclPolicy, machine, api.h.cfg.OIDC.StripEmaildomain)
|
||||
m.InvalidTags = invalidTags
|
||||
m.ValidTags = validTags
|
||||
response[index] = m
|
||||
}
|
||||
|
||||
return &v1.ListMachinesResponse{Machines: response}, nil
|
||||
|
||||
Reference in New Issue
Block a user