refactor: continue to simplify engine/netx (#769)
The objective of this diff is to simplify the code inside engine/netx while moving more bits of code inside netxlite. See https://github.com/ooni/probe/issues/2121
This commit is contained in:
parent
3265bc670a
commit
e4f10eeac2
24 changed files with 312 additions and 344 deletions
|
|
@ -1,12 +0,0 @@
|
|||
package quicdialer
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
|
||||
"github.com/lucas-clemente/quic-go"
|
||||
)
|
||||
|
||||
// connectionState returns the ConnectionState of a QUIC Session.
|
||||
func connectionState(sess quic.EarlyConnection) tls.ConnectionState {
|
||||
return sess.ConnectionState().TLS.ConnectionState
|
||||
}
|
||||
|
|
@ -61,3 +61,8 @@ func (h HandshakeSaver) DialContext(ctx context.Context, network string,
|
|||
})
|
||||
return sess, nil
|
||||
}
|
||||
|
||||
// connectionState returns the ConnectionState of a QUIC Session.
|
||||
func connectionState(sess quic.EarlyConnection) tls.ConnectionState {
|
||||
return sess.ConnectionState().TLS.ConnectionState
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue