From 2d696aa161ba45a7a15fa27bcbe8516fdcd6cd34 Mon Sep 17 00:00:00 2001 From: stevenpon Date: Tue, 15 Dec 2020 22:44:22 -0800 Subject: [PATCH] fix whitespace --- jarm.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jarm.go b/jarm.go index 1b75a3d..22215f4 100644 --- a/jarm.go +++ b/jarm.go @@ -53,7 +53,7 @@ func GetProbes(hostname string, port int) []JarmProbeOptions { tls13MiddleOut := JarmProbeOptions{Hostname: hostname, Port: port, Version: tls.VersionTLS13, Ciphers: "ALL", CipherOrder: "MIDDLE_OUT", Grease: "GREASE", ALPN: "ALPN", V13Mode: "1.3_SUPPORT", ExtensionOrder: "REVERSE"} return []JarmProbeOptions{ - tls12Forward, tls12Reverse, tls12TopHalf, tls12BottomHalf, tls12MiddleOut, tls11Forward, tls13Forward, tls13Reverse, tls13Invalid, tls13MiddleOut, + tls12Forward, tls12Reverse, tls12TopHalf, tls12BottomHalf, tls12MiddleOut, tls11Forward, tls13Forward, tls13Reverse, tls13Invalid, tls13MiddleOut, } } @@ -287,8 +287,8 @@ func ExtGetKeyShare(grease bool) []byte { shareExt = append(shareExt, 0x00, 0x1d) shareExt = append(shareExt, 0x00, 0x20) shareExt = append(shareExt, RandomBytes(32)...) - secondLength := len(shareExt) - firstLength := secondLength + 2 + secondLength := len(shareExt) + firstLength := secondLength + 2 ext = append(ext, GetUint16Bytes(firstLength)...) ext = append(ext, GetUint16Bytes(secondLength)...) ext = append(ext, shareExt...)