Renamed sharing function
This commit is contained in:
parent
7edd0cd14c
commit
729cd54401
3 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue