Renamed SharedNode to SharedMachine

This commit is contained in:
Juan Font 2021-09-06 14:43:43 +02:00
parent 75a342f96e
commit 2780623076
4 changed files with 8 additions and 8 deletions

View file

@ -183,7 +183,7 @@ func (h *Headscale) getPeers(m Machine) (*[]*tailcfg.Node, error) {
}
// We fetch here machines that are shared to the `Namespace` of the machine we are getting peers for
sharedNodes := []SharedNode{}
sharedNodes := []SharedMachine{}
if err := h.db.Preload("Namespace").Preload("Machine").Where("namespace_id = ?",
m.NamespaceID).Find(&sharedNodes).Error; err != nil {
return nil, err