forked from quic-go/quic-go
clean up dial functions
* add a context to all Dial functions
* remove the explicit Dial{*}Context functions
This commit is contained in:
@@ -147,6 +147,7 @@ var _ = Describe("MITM test", func() {
|
||||
raddr, err := net.ResolveUDPAddr("udp", fmt.Sprintf("localhost:%d", proxyPort))
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
conn, err := quic.Dial(
|
||||
context.Background(),
|
||||
clientUDPConn,
|
||||
raddr,
|
||||
getTLSClientConfig(),
|
||||
@@ -190,6 +191,7 @@ var _ = Describe("MITM test", func() {
|
||||
raddr, err := net.ResolveUDPAddr("udp", fmt.Sprintf("localhost:%d", proxyPort))
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
conn, err := quic.Dial(
|
||||
context.Background(),
|
||||
clientUDPConn,
|
||||
raddr,
|
||||
getTLSClientConfig(),
|
||||
@@ -304,6 +306,7 @@ var _ = Describe("MITM test", func() {
|
||||
raddr, err := net.ResolveUDPAddr("udp", fmt.Sprintf("localhost:%d", proxyPort))
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
_, err = quic.Dial(
|
||||
context.Background(),
|
||||
clientUDPConn,
|
||||
raddr,
|
||||
getTLSClientConfig(),
|
||||
|
||||
Reference in New Issue
Block a user