increase the timeout for the flaresolverr
All checks were successful
build / build (push) Successful in 1m27s
All checks were successful
build / build (push) Successful in 1m27s
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
parent
a04cfc2fc3
commit
c9e2cf1a44
@ -32,7 +32,7 @@ func GET(target string) ([]byte, int, http.Header, error) {
|
||||
frurl string = ""
|
||||
)
|
||||
|
||||
if frurl = os.Getenv("FLARERESOLVER"); frurl == "" {
|
||||
if frurl = os.Getenv("FLARESOLVER"); frurl == "" {
|
||||
if res, err := client.R().Get(target); err != nil {
|
||||
return nil, 0, nil, err
|
||||
} else {
|
||||
@ -46,7 +46,7 @@ func GET(target string) ([]byte, int, http.Header, error) {
|
||||
SetBody(request{
|
||||
Cmd: "request.get",
|
||||
Url: target,
|
||||
MaxTimeout: 15000,
|
||||
MaxTimeout: 40_000,
|
||||
}).
|
||||
SetResult(&response{}).
|
||||
Post(frurl)
|
||||
@ -56,7 +56,7 @@ func GET(target string) ([]byte, int, http.Header, error) {
|
||||
}
|
||||
|
||||
if res.StatusCode() != 200 {
|
||||
return nil, 0, nil, fmt.Errorf("flareresolver failure")
|
||||
return nil, 0, nil, fmt.Errorf("flaresolver failure")
|
||||
}
|
||||
|
||||
response := res.Result().(*response)
|
||||
|
Loading…
x
Reference in New Issue
Block a user