Renamed sharing function

This commit is contained in:
Juan Font 2021-09-06 14:39:52 +02:00
parent 7edd0cd14c
commit 729cd54401
3 changed files with 9 additions and 9 deletions

View file

@ -14,8 +14,8 @@ type SharedNode struct {
Namespace Namespace
}
// ShareNodeInNamespace adds a machine as a shared node to a namespace
func (h *Headscale) ShareNodeInNamespace(m *Machine, ns *Namespace) error {
// AddSharedMachineToNamespace adds a machine as a shared node to a namespace
func (h *Headscale) AddSharedMachineToNamespace(m *Machine, ns *Namespace) error {
if m.NamespaceID == ns.ID {
return errorSameNamespace
}