Disable ssl verification when resolving server endpoints

This commit is contained in:
Marcel Pociot committed 2021-06-23 15:34:14 +02:00
1 parent 48c759a7d9
commit 5a1f3ab2ff
3 files changed
+7 -3

No files matched your search

+3 -1
View File
@@ -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 [];
}