File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -338,6 +338,10 @@ type ConnectionState struct {
338338 // accepted by the server.
339339 ECHAccepted bool
340340
341+ // ECHOffered is set if the ECH extension is present in the ClientHello.
342+ // This means the client has offered ECH or sent GREASE ECH.
343+ ECHOffered bool
344+
341345 // CFControl is used to pass additional TLS configuration information to
342346 // HTTP requests.
343347 //
Original file line number Diff line number Diff line change @@ -1475,6 +1475,7 @@ func (c *Conn) connectionStateLocked() ConnectionState {
14751475 state .SignedCertificateTimestamps = c .scts
14761476 state .OCSPResponse = c .ocspResponse
14771477 state .ECHAccepted = c .ech .accepted
1478+ state .ECHOffered = c .ech .offered || c .ech .greased
14781479 state .CFControl = c .config .CFControl
14791480 if ! c .didResume && c .vers != VersionTLS13 {
14801481 if c .clientFinishedIsFirst {
You can’t perform that action at this time.
0 commit comments