Skip to content

Commit

Permalink
use latest tls fingerprint in ImpersonateXXX
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed Sep 11, 2024
1 parent 5c12b05 commit fb51d5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client_impersonate.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ var (
// ImpersonateChrome impersonates Chrome browser (version 109).
func (c *Client) ImpersonateChrome() *Client {
c.
SetTLSFingerprint(utls.HelloChrome_106_Shuffle). // Chrome 106~109 shares the same tls fingerprint.
SetTLSFingerprint(utls.HelloChrome_Auto). // Chrome 106~109 shares the same tls fingerprint.
SetHTTP2SettingsFrame(chromeHttp2Settings...).
SetHTTP2ConnectionFlow(15663105).
SetCommonPseudoHeaderOder(chromePseudoHeaderOrder...).
Expand Down Expand Up @@ -197,7 +197,7 @@ var (
// ImpersonateFirefox impersonates Firefox browser (version 105).
func (c *Client) ImpersonateFirefox() *Client {
c.
SetTLSFingerprint(utls.HelloFirefox_105).
SetTLSFingerprint(utls.HelloFirefox_Auto).
SetHTTP2SettingsFrame(firefoxHttp2Settings...).
SetHTTP2ConnectionFlow(12517377).
SetHTTP2PriorityFrames(firefoxPriorityFrames...).
Expand Down Expand Up @@ -258,7 +258,7 @@ var (
// ImpersonateSafari impersonates Safari browser (version 16).
func (c *Client) ImpersonateSafari() *Client {
c.
SetTLSFingerprint(utls.HelloSafari_16_0).
SetTLSFingerprint(utls.HelloSafari_Auto).
SetHTTP2SettingsFrame(safariHttp2Settings...).
SetHTTP2ConnectionFlow(10485760).
SetCommonPseudoHeaderOder(safariPseudoHeaderOrder...).
Expand Down

0 comments on commit fb51d5b

Please sign in to comment.