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

@@ -55,7 +55,7 @@ func cidrIsSubnet(node *tailcfg.Node, cidr netaddr.IPPrefix) bool {
func WGCfg(nm *netmap.NetworkMap, logf logger.Logf, flags netmap.WGConfigFlags, exitNode tailcfg.StableNodeID) (*wgcfg.Config, error) {
cfg := &wgcfg.Config{
Name: "tailscale",
PrivateKey: key.NodePrivateFromRaw32(mem.B(nm.PrivateKey[:])),
PrivateKey: nm.PrivateKey,
Addresses: nm.Addresses,
Peers: make([]wgcfg.Peer, 0, len(nm.Peers)),
}