mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-30 05:40:50 -05:00
Renamed SharedNode to SharedMachine
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user