types/netmap: use new node key type.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-10-28 10:44:34 -07:00
parent 96ad68c5d6
commit 6e5175373e
5 changed files with 7 additions and 7 deletions

View File

@@ -10,6 +10,7 @@ import (
"sort"
"strconv"
"go4.org/mem"
"inet.af/netaddr"
"tailscale.com/tailcfg"
"tailscale.com/types/key"
@@ -112,7 +113,7 @@ func (ms *mapSession) netmapForResponse(resp *tailcfg.MapResponse) *netmap.Netwo
nm := &netmap.NetworkMap{
NodeKey: tailcfg.NodeKey(ms.privateNodeKey.Public()),
PrivateKey: ms.privateNodeKey,
PrivateKey: key.NodePrivateFromRaw32(mem.B(ms.privateNodeKey[:])),
MachineKey: ms.machinePubKey,
Peers: resp.Peers,
UserProfiles: make(map[tailcfg.UserID]tailcfg.UserProfile),