ooni-probe-cli/internal/engine/netx/quicdialer/connectionstate.go

13 lines
270 B
Go
Raw Normal View History

package quicdialer
import (
"crypto/tls"
"github.com/lucas-clemente/quic-go"
)
// connectionState returns the ConnectionState of a QUIC Session.
func connectionState(sess quic.EarlySession) tls.ConnectionState {
return sess.ConnectionState().TLS.ConnectionState
}