mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Harmonize identifiers to uTLS
This commit is contained in:
parent
e3aeb5fe5b
commit
8d5998b744
4 changed files with 17 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue