feat(ja3): Update JA3 fingerprinting source and parsing
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user