From 02675388feb9d36a1b1457c37e8c0c724724dc3b Mon Sep 17 00:00:00 2001 From: Sergey Frolov Date: Tue, 28 Jul 2020 09:42:20 -0600 Subject: [PATCH] Fix GREASE repeating values (#53) Fixes #52 --- u_parrots.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/u_parrots.go b/u_parrots.go index c19c4b9..c0e4975 100644 --- a/u_parrots.go +++ b/u_parrots.go @@ -602,7 +602,7 @@ func (uconn *UConn) ApplyPreset(p *ClientHelloSpec) error { for i := range uconn.greaseSeed { uconn.greaseSeed[i] = binary.LittleEndian.Uint16(grease_bytes[2*i : 2*i+2]) } - if uconn.greaseSeed[ssl_grease_extension1] == uconn.greaseSeed[ssl_grease_extension2] { + if GetBoringGREASEValue(uconn.greaseSeed, ssl_grease_extension1) == GetBoringGREASEValue(uconn.greaseSeed, ssl_grease_extension2) { uconn.greaseSeed[ssl_grease_extension2] ^= 0x1010 }