diff --git a/u_common.go b/u_common.go index 4b0a09a..e8dfd74 100644 --- a/u_common.go +++ b/u_common.go @@ -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} diff --git a/u_parrots.go b/u_parrots.go index ce3cfad..38dc297 100644 --- a/u_parrots.go +++ b/u_parrots.go @@ -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())