From 9c1996abbbbab2bcb102ef78a04f845a6270b5d1 Mon Sep 17 00:00:00 2001 From: Gaukas Wang Date: Tue, 1 Nov 2022 11:48:05 -0600 Subject: [PATCH] Exports `utlsIdToSpec()` as `UTLSIdToSpec()` (#136) * feat: UtlsIdToSpec exported `utlsIdToSpec()` function per request. * chore: func naming and comments Fixed typo in comments. --- u_parrots.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/u_parrots.go b/u_parrots.go index cfd78c4f..820d71d5 100644 --- a/u_parrots.go +++ b/u_parrots.go @@ -14,6 +14,13 @@ import ( "strconv" ) +// UTLSIdToSpec 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: