From 52799712772baa0d1f9ef6b457eb054524b6c746 Mon Sep 17 00:00:00 2001 From: Gaukas Wang Date: Tue, 1 Nov 2022 11:43:16 -0600 Subject: [PATCH 1/2] feat: UtlsIdToSpec exported `utlsIdToSpec()` function per request. --- u_parrots.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/u_parrots.go b/u_parrots.go index cfd78c4f..6de8e024 100644 --- a/u_parrots.go +++ b/u_parrots.go @@ -14,6 +14,13 @@ import ( "strconv" ) +// UtlsIdSpec converts a ClientHelloID to a corresponding ClientHelloSpec. +// +// Exported internal function utlsIdToSpec per request. +func UtlsIdToSpec(id ClientHelloID) (ClientHelloSpec, error) { + return utlsIdToSpec(id) +} + func utlsIdToSpec(id ClientHelloID) (ClientHelloSpec, error) { switch id { case HelloChrome_58, HelloChrome_62: From 9ee1badf9a57906e5778e16f9af5d296925e2b9a Mon Sep 17 00:00:00 2001 From: Gaukas Wang Date: Tue, 1 Nov 2022 11:45:56 -0600 Subject: [PATCH 2/2] chore: func naming and comments Fixed typo in comments. --- u_parrots.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/u_parrots.go b/u_parrots.go index 6de8e024..820d71d5 100644 --- a/u_parrots.go +++ b/u_parrots.go @@ -14,10 +14,10 @@ import ( "strconv" ) -// UtlsIdSpec converts a ClientHelloID to a corresponding ClientHelloSpec. +// UTLSIdToSpec converts a ClientHelloID to a corresponding ClientHelloSpec. // // Exported internal function utlsIdToSpec per request. -func UtlsIdToSpec(id ClientHelloID) (ClientHelloSpec, error) { +func UTLSIdToSpec(id ClientHelloID) (ClientHelloSpec, error) { return utlsIdToSpec(id) }