Skip to content

Commit

Permalink
Add new ClientHellos (#1260)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwh33 authored Oct 13, 2022
1 parent 094f3bb commit fb11037
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion chained/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ package chained
import (
"strconv"

"github.com/getlantern/lantern-cloud/cmd/api/apipb"
"github.com/getlantern/golog"
"github.com/getlantern/lantern-cloud/cmd/api/apipb"
tls "github.com/refraction-networking/utls"
"google.golang.org/protobuf/proto"
)
Expand Down Expand Up @@ -182,8 +182,14 @@ var availableClientHelloIDs = map[string]tls.ClientHelloID{
"HelloFirefox_Auto": tls.HelloFirefox_Auto,
"HelloFirefox_55": tls.HelloFirefox_55,
"HelloFirefox_56": tls.HelloFirefox_56,
"HelloFirefox_105": tls.HelloFirefox_105,
"HelloChrome_Auto": tls.HelloChrome_Auto,
"HelloChrome_58": tls.HelloChrome_58,
"HelloChrome_62": tls.HelloChrome_62,
"HelloChrome_106": tls.HelloChrome_106,
"HelloEdge_Auto": tls.HelloEdge_Auto,
"Hello360_Auto": tls.Hello360_Auto,
"HelloQQ_Auto": tls.HelloQQ_Auto,
"HelloQQ_11": tls.HelloQQ_11_1,
"HelloBrowser": helloBrowser,
}
2 changes: 1 addition & 1 deletion chained/tls_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (

tls "github.com/refraction-networking/utls"

"github.com/getlantern/lantern-cloud/cmd/api/apipb"
"github.com/getlantern/flashlight/browsers/simbrowser"
"github.com/getlantern/flashlight/common"
"github.com/getlantern/flashlight/ops"
"github.com/getlantern/lantern-cloud/cmd/api/apipb"
"github.com/getlantern/tlsresumption"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replace github.com/elazarl/goproxy => github.com/getlantern/goproxy v0.0.0-20220

replace github.com/lucas-clemente/quic-go => github.com/getlantern/quic-go v0.27.1-0.20220428155905-cb005872fecc

replace github.com/refraction-networking/utls => github.com/getlantern/utls v0.0.0-20211116192935-1abdc4b1acab
replace github.com/refraction-networking/utls => github.com/getlantern/utls v0.0.0-20221011213556-17014cb6fc4a

replace github.com/keighl/mandrill => github.com/getlantern/mandrill v0.0.0-20221004112352-e7c04248adcb

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,8 @@ github.com/getlantern/tlsutil v0.5.3 h1:g1FjuG4/OTZe8kkbEmpSxvT9rXzYOG9jO4jHiDeQ
github.com/getlantern/tlsutil v0.5.3/go.mod h1:lVgvr4nxuQ1ocOho90UB6LnHFlpP16TXAGpHR8Z0QnI=
github.com/getlantern/upnp v0.0.0-20220531140457-71a975af1fad h1:F7Pl+9tS7QtyCzL7hD70pm4jpSiJp/pCn25d2BQ/xow=
github.com/getlantern/upnp v0.0.0-20220531140457-71a975af1fad/go.mod h1:ZZCjqcZBEc+UK2hjZf3saA3Hiw2z2CXTTF6r4tu0+i0=
github.com/getlantern/utls v0.0.0-20211116192935-1abdc4b1acab h1:spKfkU87PniZpLFxNWeDgEToUzDtlEEK6s55dbiKQmM=
github.com/getlantern/utls v0.0.0-20211116192935-1abdc4b1acab/go.mod h1:6Or1dHdfUbqmyPgIabDCAae0QImb7ZAq+5d5FYop3lE=
github.com/getlantern/utls v0.0.0-20221011213556-17014cb6fc4a h1:A12K3qOcLk8kwp+NB7OonNskzaYA+tIXvTPuk0Gor6I=
github.com/getlantern/utls v0.0.0-20221011213556-17014cb6fc4a/go.mod h1:xleouNszTteqmcvv1JZiPuBY+MnTh/xV34mi0HYmiqk=
github.com/getlantern/uuid v1.1.2-0.20190507182000-5c9436b8c718/go.mod h1:uX10hOzZUUDR+oYNSIks+RcozOEiwTNC/K2rw9SUi1k=
github.com/getlantern/uuid v1.2.0 h1:pGrGaCV7XEaG6lvjWkwf8Y92BjB/9yFmkKsNFpRQ7rc=
github.com/getlantern/uuid v1.2.0/go.mod h1:uX10hOzZUUDR+oYNSIks+RcozOEiwTNC/K2rw9SUi1k=
Expand Down

0 comments on commit fb11037

Please sign in to comment.