Skip to content

Commit

Permalink
Expose the QUIC version of a connection via connection state
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Nov 15, 2022
1 parent 7b211d6 commit 904a522
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions connection.go
Expand Up @@ -738,6 +738,7 @@ func (s *connection) ConnectionState() ConnectionState {
return ConnectionState{
TLS: s.cryptoStreamHandler.ConnectionState(),
SupportsDatagrams: s.supportsDatagrams(),
QUICVersion: s.version,
}
}

Expand Down
1 change: 1 addition & 0 deletions interface.go
Expand Up @@ -331,6 +331,7 @@ type Config struct {
type ConnectionState struct {
TLS handshake.ConnectionState
SupportsDatagrams bool
QUICVersion protocol.VersionNumber
}

// A Listener for incoming QUIC connections
Expand Down

0 comments on commit 904a522

Please sign in to comment.