remove unneeded version parameter from proxy constructor

This commit is contained in:
Marten Seemann 2019-01-05 11:04:39 +07:00
parent 8ac77be934
commit 2367ab35bb
6 changed files with 10 additions and 13 deletions

View file

@ -38,7 +38,7 @@ var _ = Describe("Drop Tests", func() {
)
Expect(err).ToNot(HaveOccurred())
serverPort := ln.Addr().(*net.UDPAddr).Port
proxy, err = quicproxy.NewQuicProxy("localhost:0", version, &quicproxy.Opts{
proxy, err = quicproxy.NewQuicProxy("localhost:0", &quicproxy.Opts{
RemoteAddr: fmt.Sprintf("localhost:%d", serverPort),
DelayPacket: func(dir quicproxy.Direction, packetCount uint64) time.Duration {
return 5 * time.Millisecond // 10ms RTT