ooni-probe-cli/internal/engine/netx/quicdialer/connectionstate.go
Simone Basso 250a595f89
refactor: cleaner way of passing a UDPConn around (#421)
* refactor: cleaner way of passing a UDPConn around

Also part of https://github.com/ooni/probe/issues/1505

* Update internal/engine/netx/quicdialer/connectionstate.go
2021-07-01 21:56:29 +02:00

13 lines
270 B
Go

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
}