|
|
@ -106,7 +106,7 @@ func setupWGTest(b *testing.B, logf logger.Logf, traf *TrafficGen, a1, a2 netadd
|
|
|
|
}
|
|
|
|
}
|
|
|
|
e2.SetNetworkMap(&netmap.NetworkMap{
|
|
|
|
e2.SetNetworkMap(&netmap.NetworkMap{
|
|
|
|
NodeKey: tailcfg.NodeKeyFromNodePublic(k2.Public()),
|
|
|
|
NodeKey: tailcfg.NodeKeyFromNodePublic(k2.Public()),
|
|
|
|
PrivateKey: k2.AsWGPrivate(),
|
|
|
|
PrivateKey: k2,
|
|
|
|
Peers: []*tailcfg.Node{&n},
|
|
|
|
Peers: []*tailcfg.Node{&n},
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
@ -143,7 +143,7 @@ func setupWGTest(b *testing.B, logf logger.Logf, traf *TrafficGen, a1, a2 netadd
|
|
|
|
}
|
|
|
|
}
|
|
|
|
e1.SetNetworkMap(&netmap.NetworkMap{
|
|
|
|
e1.SetNetworkMap(&netmap.NetworkMap{
|
|
|
|
NodeKey: tailcfg.NodeKeyFromNodePublic(k1.Public()),
|
|
|
|
NodeKey: tailcfg.NodeKeyFromNodePublic(k1.Public()),
|
|
|
|
PrivateKey: k1.AsWGPrivate(),
|
|
|
|
PrivateKey: k1,
|
|
|
|
Peers: []*tailcfg.Node{&n},
|
|
|
|
Peers: []*tailcfg.Node{&n},
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|