Send the namespace name as user to the clients

This commit is contained in:
Juan Font Alonso 2021-07-11 16:39:19 +02:00
parent cf9d920e4a
commit 0159649d0a
4 changed files with 14 additions and 8 deletions

View file

@ -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 {