diff --git a/wgengine/bench/bench_test.go b/wgengine/bench/bench_test.go index 739b3d418..a34b2dcbe 100644 --- a/wgengine/bench/bench_test.go +++ b/wgengine/bench/bench_test.go @@ -42,6 +42,7 @@ func BenchmarkBatchTCP(b *testing.B) { } func BenchmarkWireGuardTest(b *testing.B) { + b.Skip("setup code doesn't support disco yet") run(b, func(logf logger.Logf, traf *TrafficGen) { setupWGTest(b, logf, traf, Addr1, Addr2) }) diff --git a/wgengine/bench/wg.go b/wgengine/bench/wg.go index c23ccc4dd..84332c97f 100644 --- a/wgengine/bench/wg.go +++ b/wgengine/bench/wg.go @@ -32,6 +32,7 @@ func setupWGTest(b *testing.B, logf logger.Logf, traf *TrafficGen, a1, a2 netadd if err != nil { log.Fatalf("e1 NewPrivateKey: %v", err) } + c1 := wgcfg.Config{ Name: "e1", PrivateKey: k1, @@ -105,7 +106,6 @@ func setupWGTest(b *testing.B, logf logger.Logf, traf *TrafficGen, a1, a2 netadd } endpoint := wgcfg.Endpoints{ PublicKey: c1.PrivateKey.Public(), - IPPorts: wgcfg.NewIPPortSet(ipps...), } n := tailcfg.Node{ @@ -149,7 +149,6 @@ func setupWGTest(b *testing.B, logf logger.Logf, traf *TrafficGen, a1, a2 netadd } endpoint := wgcfg.Endpoints{ PublicKey: c2.PrivateKey.Public(), - IPPorts: wgcfg.NewIPPortSet(ipps...), } n := tailcfg.Node{