mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-03 20:17:36 +03:00
Add Firefox 56 and Chrome 62
This commit is contained in:
parent
8d58a32e44
commit
c98df6b261
2 changed files with 8 additions and 2 deletions
|
@ -92,9 +92,11 @@ var (
|
|||
// The rest will will parrot given browser.
|
||||
HelloFirefox_Auto ClientHelloID = ClientHelloID{helloFirefox, helloAutoVers}
|
||||
HelloFirefox_55 = ClientHelloID{helloFirefox, 55}
|
||||
HelloFirefox_56 = ClientHelloID{helloFirefox, 56}
|
||||
|
||||
HelloChrome_Auto ClientHelloID = ClientHelloID{helloChrome, helloAutoVers}
|
||||
HelloChrome_58 ClientHelloID = ClientHelloID{helloChrome, 58}
|
||||
HelloChrome_62 ClientHelloID = ClientHelloID{helloChrome, 62}
|
||||
|
||||
HelloAndroid_Auto ClientHelloID = ClientHelloID{helloAndroid, helloAutoVers}
|
||||
HelloAndroid_6_0_Browser ClientHelloID = ClientHelloID{helloAndroid, 23}
|
||||
|
|
|
@ -18,6 +18,8 @@ import (
|
|||
func (uconn *UConn) generateClientHelloConfig(id ClientHelloID) error {
|
||||
uconn.clientHelloID = id
|
||||
switch uconn.clientHelloID {
|
||||
case HelloFirefox_56:
|
||||
fallthrough
|
||||
case HelloFirefox_55:
|
||||
return uconn.parrotFirefox_55()
|
||||
|
||||
|
@ -26,6 +28,8 @@ func (uconn *UConn) generateClientHelloConfig(id ClientHelloID) error {
|
|||
case HelloAndroid_5_1_Browser:
|
||||
return uconn.parrotAndroid_5_1()
|
||||
|
||||
case HelloChrome_62:
|
||||
fallthrough
|
||||
case HelloChrome_58:
|
||||
return uconn.parrotChrome_58()
|
||||
|
||||
|
@ -47,9 +51,9 @@ func (uconn *UConn) generateClientHelloConfig(id ClientHelloID) error {
|
|||
case HelloAndroid_Auto:
|
||||
return uconn.generateClientHelloConfig(HelloAndroid_6_0_Browser)
|
||||
case HelloFirefox_Auto:
|
||||
return uconn.generateClientHelloConfig(HelloFirefox_55)
|
||||
return uconn.generateClientHelloConfig(HelloFirefox_56)
|
||||
case HelloChrome_Auto:
|
||||
return uconn.generateClientHelloConfig(HelloChrome_58)
|
||||
return uconn.generateClientHelloConfig(HelloChrome_62)
|
||||
|
||||
default:
|
||||
return errors.New("Unknown ParrotID: " + id.Str())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue