Skip to content

Commit

Permalink
Disable ssl verification when resolving server endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed Jun 23, 2021
1 parent 48c759a commit 5a1f3ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/Commands/ServerAwareCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ protected function getServerPort()
protected function lookupRemoteServers()
{
try {
return Http::get(config('expose.server_endpoint', static::DEFAULT_SERVER_ENDPOINT))->json();
return Http::withOptions([
'verify' => false,
])->get(config('expose.server_endpoint', static::DEFAULT_SERVER_ENDPOINT))->json();
} catch (\Throwable $e) {
return [];
}
Expand Down
4 changes: 3 additions & 1 deletion app/Commands/ServerListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public function handle()
protected function lookupRemoteServers()
{
try {
return Http::get(config('expose.server_endpoint', static::DEFAULT_SERVER_ENDPOINT))->json();
return Http::withOptions([
'verify' => false,
])->get(config('expose.server_endpoint', static::DEFAULT_SERVER_ENDPOINT))->json();
} catch (\Throwable $e) {
return [];
}
Expand Down
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
|
*/

'version' => '2.0.1',
'version' => '2.0.2',

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 5a1f3ab

Please sign in to comment.