mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
set a net.Conn with the correct addresses on the tls.ClientHelloInfo (#4001)
This commit is contained in:
parent
44a58dc425
commit
f3a0ce1599
7 changed files with 69 additions and 0 deletions
|
@ -7,6 +7,7 @@ import (
|
|||
"crypto/x509"
|
||||
"crypto/x509/pkix"
|
||||
"math/big"
|
||||
"net"
|
||||
"time"
|
||||
|
||||
mocktls "github.com/quic-go/quic-go/internal/mocks/tls"
|
||||
|
@ -65,6 +66,8 @@ var _ = Describe("Crypto Setup TLS", func() {
|
|||
var token protocol.StatelessResetToken
|
||||
server := NewCryptoSetupServer(
|
||||
protocol.ConnectionID{},
|
||||
&net.UDPAddr{IP: net.IPv6loopback, Port: 1234},
|
||||
&net.UDPAddr{IP: net.IPv6loopback, Port: 4321},
|
||||
&wire.TransportParameters{StatelessResetToken: &token},
|
||||
testdata.GetTLSConfig(),
|
||||
false,
|
||||
|
@ -204,6 +207,8 @@ var _ = Describe("Crypto Setup TLS", func() {
|
|||
}
|
||||
server := NewCryptoSetupServer(
|
||||
protocol.ConnectionID{},
|
||||
&net.UDPAddr{IP: net.IPv6loopback, Port: 1234},
|
||||
&net.UDPAddr{IP: net.IPv6loopback, Port: 4321},
|
||||
serverTransportParameters,
|
||||
serverConf,
|
||||
enable0RTT,
|
||||
|
@ -273,6 +278,8 @@ var _ = Describe("Crypto Setup TLS", func() {
|
|||
}
|
||||
server := NewCryptoSetupServer(
|
||||
protocol.ConnectionID{},
|
||||
&net.UDPAddr{IP: net.IPv6loopback, Port: 1234},
|
||||
&net.UDPAddr{IP: net.IPv6loopback, Port: 4321},
|
||||
sTransportParameters,
|
||||
serverConf,
|
||||
false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue