From b937f9b7629ab1c40277fb04a773774d5355e606 Mon Sep 17 00:00:00 2001 From: Juan Font Date: Fri, 10 Sep 2021 00:30:02 +0200 Subject: [PATCH] Update machine.go Added comment on toNode --- machine.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/machine.go b/machine.go index 40fabee6..3e9786a2 100644 --- a/machine.go +++ b/machine.go @@ -50,6 +50,8 @@ func (m Machine) isAlreadyRegistered() bool { return m.Registered } +// toNode converts a Machine into a Tailscale Node. includeRoutes is false for shared nodes +// as per the expected behaviour in the official SaaS func (m Machine) toNode(includeRoutes bool) (*tailcfg.Node, error) { nKey, err := wgkey.ParseHex(m.NodeKey) if err != nil {