Harmonize identifiers to uTLS

This commit is contained in:
Shelikhoo 2022-02-11 11:26:41 +00:00
parent e3aeb5fe5b
commit 8d5998b744
No known key found for this signature in database
GPG key ID: C4D5E79D22B25316
4 changed files with 17 additions and 17 deletions

View file

@ -29,7 +29,7 @@ var clientHelloIDMap = map[string]utls.ClientHelloID{
var errNameNotFound = errors.New("client hello name is unrecognized")
func NameToUTlsID(name string) (utls.ClientHelloID, error) {
func NameToUTLSID(name string) (utls.ClientHelloID, error) {
normalizedName := strings.ToLower(name)
if id, ok := clientHelloIDMap[normalizedName]; ok {
return id, nil