Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiritin committed Aug 31, 2023
1 parent 7a15192 commit c8bd6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Jobs/CheckClientActivityJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function handle(): void

// Ask Server if client is still active
$proto = app()->isLocal() ? "http" : "https";
$hostname = app()->isLocal() ? "stream:1985" : $client->server;
$hostname = app()->isLocal() ? "stream:1985" : $client->server->hostname;
$request = Http::withBasicAuth(config('services.srs.username'),
config('services.srs.password'))->get($proto."://".$hostname.'/api/v1/clients/'.$client->client_id);
if ($request->json()['code'] !== 0) {
Expand Down

0 comments on commit c8bd6bc

Please sign in to comment.