feat(ja3): Update JA3 fingerprinting source and parsing

This commit is contained in:
2025-11-19 15:44:24 +11:00
parent 567048911d
commit 65b46e1975
3 changed files with 49 additions and 4 deletions

View File

@@ -2,13 +2,14 @@ package test
import (
"encoding/json"
"fmt"
"testing"
"git.nite07.com/nite/go-flaresolverr"
)
func TestGetV1(t *testing.T) {
f, err := flaresolverr.GetInstance("http://127.0.0.1:8191", "", "")
f, err := flaresolverr.GetInstance("http://100.64.0.1:8191", "", "")
if err != nil {
t.Error(err)
return
@@ -27,7 +28,7 @@ func TestGetV1(t *testing.T) {
}
func TestImitateGet(t *testing.T) {
f, err := flaresolverr.GetInstance("http://127.0.0.1:8191", "", "")
f, err := flaresolverr.GetInstance("http://100.64.0.1:8191", "", "")
if err != nil {
t.Error(err)
return
@@ -49,6 +50,7 @@ func TestImitateGet(t *testing.T) {
return
}
if resp1.Status != 200 {
fmt.Printf("status is not 200: %v", resp1.Status)
t.FailNow()
}
jsonBytes, _ := json.Marshal(resp1)