mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-03 20:17:36 +03:00
🚑 fix: code broken after merging
Signed-off-by: Gaukas Wang <i@gaukas.wang>
This commit is contained in:
parent
8680818a98
commit
5796f9738a
6 changed files with 58 additions and 51 deletions
13
conn.go
13
conn.go
|
@ -1610,7 +1610,7 @@ func (c *Conn) ConnectionState() ConnectionState {
|
|||
return c.connectionStateLocked()
|
||||
}
|
||||
|
||||
var tlsunsafeekm = godebug.New("tlsunsafeekm")
|
||||
// var tlsunsafeekm = godebug.New("tlsunsafeekm") // [uTLS] unsupportted
|
||||
|
||||
func (c *Conn) connectionStateLocked() ConnectionState {
|
||||
var state ConnectionState
|
||||
|
@ -1636,10 +1636,13 @@ func (c *Conn) connectionStateLocked() ConnectionState {
|
|||
state.ekm = noEKMBecauseRenegotiation
|
||||
} else if c.vers != VersionTLS13 && !c.extMasterSecret {
|
||||
state.ekm = func(label string, context []byte, length int) ([]byte, error) {
|
||||
if tlsunsafeekm.Value() == "1" {
|
||||
tlsunsafeekm.IncNonDefault()
|
||||
return c.ekm(label, context, length)
|
||||
}
|
||||
// [uTLS SECTION START]
|
||||
// Disabling unsupported godebug package
|
||||
// if tlsunsafeekm.Value() == "1" {
|
||||
// tlsunsafeekm.IncNonDefault()
|
||||
// return c.ekm(label, context, length)
|
||||
// }
|
||||
// [uTLS SECTION END]
|
||||
return noEKMBecauseNoEMS(label, context, length)
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue