Skip to content

Commit

Permalink
Exports utlsIdToSpec() as UTLSIdToSpec() (#136)
Browse files Browse the repository at this point in the history
* feat: UtlsIdToSpec

exported `utlsIdToSpec()` function per request.

* chore: func naming and comments

Fixed typo in comments.
  • Loading branch information
gaukas committed Nov 1, 2022
1 parent ca829f6 commit 9c1996a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions u_parrots.go
Expand Up @@ -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:
Expand Down

0 comments on commit 9c1996a

Please sign in to comment.