forked from quic-go/quic-go
set a net.Conn with the correct addresses on the tls.ClientHelloInfo (#4001)
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"crypto/tls"
|
||||
"log"
|
||||
"net"
|
||||
|
||||
fuzzhandshake "github.com/quic-go/quic-go/fuzzing/handshake"
|
||||
"github.com/quic-go/quic-go/fuzzing/internal/helper"
|
||||
@@ -37,6 +38,8 @@ func main() {
|
||||
config.NextProtos = []string{alpn}
|
||||
server := handshake.NewCryptoSetupServer(
|
||||
protocol.ConnectionID{},
|
||||
&net.UDPAddr{IP: net.IPv6loopback, Port: 1234},
|
||||
&net.UDPAddr{IP: net.IPv6loopback, Port: 4321},
|
||||
&wire.TransportParameters{ActiveConnectionIDLimit: 2},
|
||||
config,
|
||||
false,
|
||||
|
||||
@@ -11,6 +11,7 @@ import (
|
||||
"log"
|
||||
"math"
|
||||
mrand "math/rand"
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/quic-go/quic-go/fuzzing/internal/helper"
|
||||
@@ -304,6 +305,8 @@ func runHandshake(runConfig [confLen]byte, messageConfig uint8, clientConf *tls.
|
||||
|
||||
server := handshake.NewCryptoSetupServer(
|
||||
protocol.ConnectionID{},
|
||||
&net.UDPAddr{IP: net.IPv6loopback, Port: 1234},
|
||||
&net.UDPAddr{IP: net.IPv6loopback, Port: 4321},
|
||||
serverTP,
|
||||
serverConf,
|
||||
enable0RTTServer,
|
||||
|
||||
Reference in New Issue
Block a user