Send the namespace name as user to the clients
This commit is contained in:
parent
cf9d920e4a
commit
0159649d0a
4 changed files with 14 additions and 8 deletions
|
@ -154,7 +154,6 @@ func (m Machine) toNode() (*tailcfg.Node, error) {
|
|||
}
|
||||
|
||||
func (h *Headscale) getPeers(m Machine) (*[]*tailcfg.Node, error) {
|
||||
|
||||
machines := []Machine{}
|
||||
if err := h.db.Where("namespace_id = ? AND machine_key <> ? AND registered",
|
||||
m.NamespaceID, m.MachineKey).Find(&machines).Error; err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue