pagpeter / TrackMe

https://tls.peet.ws
GNU General Public License v3.0
231 stars 36 forks source link

make response work with utls #24

Open 3052 opened 2 months ago

3052 commented 2 months ago

currently the response from https://tls.peet.ws/api/all cannot be used with uTLS. with this:

https://pkg.go.dev/github.com/refraction-networking/utls#ClientHelloSpec.FromRaw

it fails because the API does not return the raw data, unlike other options:

https://tlshello.agwa.name/

and with these:

https://pkg.go.dev/github.com/refraction-networking/utls#ClientHelloSpec.ImportTLSClientHello https://pkg.go.dev/github.com/refraction-networking/utls#ClientHelloSpec.ImportTLSClientHelloFromJSON

it fails because the response is a different format