mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 04:07:35 +03:00
remove the host parameter from all dial functions
This commit is contained in:
parent
ea721c9c75
commit
d683b841c4
14 changed files with 43 additions and 237 deletions
|
@ -273,6 +273,6 @@ func (r *RoundTripper) makeDialer() func(ctx context.Context, addr string, tlsCf
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return quicDialer(ctx, r.udpConn, udpAddr, addr, tlsCfg, cfg)
|
||||
return quicDialer(ctx, r.udpConn, udpAddr, tlsCfg, cfg)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -322,7 +322,7 @@ var _ = Describe("RoundTripper", func() {
|
|||
})
|
||||
|
||||
Context("reusing udpconn", func() {
|
||||
var originalDialer func(ctx context.Context, pconn net.PacketConn, remoteAddr net.Addr, host string, tlsConf *tls.Config, config *quic.Config) (quic.EarlyConnection, error)
|
||||
var originalDialer func(ctx context.Context, pconn net.PacketConn, remoteAddr net.Addr, tlsConf *tls.Config, config *quic.Config) (quic.EarlyConnection, error)
|
||||
var req1, req2 *http.Request
|
||||
|
||||
BeforeEach(func() {
|
||||
|
@ -356,7 +356,7 @@ var _ = Describe("RoundTripper", func() {
|
|||
|
||||
It("reuses udpconn in different hosts", func() {
|
||||
Expect(rt.udpConn).To(BeNil())
|
||||
quicDialer = func(_ context.Context, pconn net.PacketConn, _ net.Addr, _ string, _ *tls.Config, _ *quic.Config) (quic.EarlyConnection, error) {
|
||||
quicDialer = func(_ context.Context, pconn net.PacketConn, _ net.Addr, _ *tls.Config, _ *quic.Config) (quic.EarlyConnection, error) {
|
||||
conn := mockquic.NewMockEarlyConnection(mockCtrl)
|
||||
conn.EXPECT().LocalAddr().Return(pconn.LocalAddr())
|
||||
return conn, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue