mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
Disable ssl verification when resolving server endpoints
This commit is contained in:
@@ -89,7 +89,9 @@ abstract class ServerAwareCommand extends Command
|
||||
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 [];
|
||||
}
|
||||
|
||||
@@ -33,7 +33,9 @@ class ServerListCommand extends Command
|
||||
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 [];
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'version' => '2.0.1',
|
||||
'version' => '2.0.2',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user