Skip to content

Commit

Permalink
fix: removed redundant assignment (#184)
Browse files Browse the repository at this point in the history
removed a legacy assignment to `hello.CipherSuites` in `ApplyPreset()` which gets overwritten later in code
  • Loading branch information
gaukas committed Jul 6, 2023
1 parent e4fc271 commit c062ac9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions u_parrots.go
Original file line number Diff line number Diff line change
Expand Up @@ -2036,9 +2036,7 @@ func (uconn *UConn) ApplyPreset(p *ClientHelloSpec) error {
return errors.New("ClientHello expected length: 32 bytes. Got: " +
strconv.Itoa(len(hello.Random)) + " bytes")
}
if len(hello.CipherSuites) == 0 {
hello.CipherSuites = defaultCipherSuites
}

if len(hello.CompressionMethods) == 0 {
hello.CompressionMethods = []uint8{compressionNone}
}
Expand Down

0 comments on commit c062ac9

Please sign in to comment.