forked from quic-go/quic-go
make it possible to configure the QUIC versions for the server
This commit is contained in:
@@ -63,6 +63,10 @@ type Config struct {
|
||||
// If this field is not set, the Dial functions will return only when the connection is forward secure.
|
||||
// Callbacks have to be thread-safe, since they might be called in separate goroutines.
|
||||
ConnState ConnStateCallback
|
||||
// The QUIC versions that can be negotiated.
|
||||
// If not set, it uses all versions available.
|
||||
// Warning: This API should not be considered stable and will change soon.
|
||||
Versions []protocol.VersionNumber
|
||||
}
|
||||
|
||||
// A Listener for incoming QUIC connections
|
||||
|
||||
Reference in New Issue
Block a user