Skip to content

Commit

Permalink
chore: add more utls fingerprints
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqgtxx committed Feb 28, 2023
1 parent d55025e commit 6061f3d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion component/tls/utls.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,22 @@ var Fingerprints = map[string]UClientHelloID{
"firefox": {&utls.HelloFirefox_Auto},
"safari": {&utls.HelloSafari_Auto},
"ios": {&utls.HelloIOS_Auto},
"randomized": {&utls.HelloRandomized},
"android": {&utls.HelloAndroid_11_OkHttp},
"edge": {&utls.HelloEdge_Auto},
"360": {&utls.Hello360_Auto},
"qq": {&utls.HelloQQ_Auto},
"random": {nil},
"randomized": {nil},
}

func init() {
weights := utls.DefaultWeights
weights.TLSVersMax_Set_VersionTLS13 = 1
weights.FirstKeyShare_Set_CurveP256 = 0
randomized := utls.HelloRandomized
randomized.Seed, _ = utls.NewPRNGSeed()
randomized.Weights = &weights
Fingerprints["randomized"] = UClientHelloID{&randomized}
}

func copyConfig(c *tls.Config) *utls.Config {
Expand Down

0 comments on commit 6061f3d

Please sign in to comment.