Fix: Laravel Stack auf UGREEN NAS eingerichtet
This commit is contained in:
1 parent
3034b54947
commit
0e37c23e97
3 files changed
+9
-4
No files matched your search
@@ -7,7 +7,7 @@ use Illuminate\Support\Facades\Log;
|
||||
|
||||
class CloudflareSolverService
|
||||
{
|
||||
protected string $solverUrl = 'http://192.168.178.187:8191/v1';
|
||||
protected string $solverUrl = 'http://flaresolverr:8191/v1';
|
||||
|
||||
/**
|
||||
* Holt die Daten und gibt das extrahierte JSON als PHP-Array zurück.
|
||||
@@ -17,9 +17,9 @@ class CloudflareSolverService
|
||||
{
|
||||
/**
|
||||
* set in .env
|
||||
* FLARESOLVERR_IP_DOCKER="http://192.168.178.187:8191/v1"
|
||||
* FLARESOLVERR_IP_DOCKER="http://flaresolverr:8191/v1"
|
||||
*/
|
||||
$this->solverUrl = env('FLARESOLVERR_IP_DOCKER', 'http://192.168.178.187:8191/v1');
|
||||
$this->solverUrl = env('FLARESOLVERR_IP_DOCKER', 'http://flaresolverr:8191/v1');
|
||||
|
||||
try {
|
||||
$response = Http::withHeaders([
|
||||
@@ -38,6 +38,10 @@ class CloudflareSolverService
|
||||
|
||||
$data = $response->json();
|
||||
|
||||
if (strpos($data['solution']['response'], '"code": 403, "reason": "challenge"') !== false) {
|
||||
dd($data);
|
||||
}
|
||||
|
||||
$tmp = json_encode($data);
|
||||
// if (strpos($tmp, "reason") !== false && strpos($tmp, 403) !== false)
|
||||
// dd($data);
|
||||
|
||||
Reference in new issue
Block a user