diff --git a/inc/vite.php b/inc/vite.php index 2271740..afea007 100644 --- a/inc/vite.php +++ b/inc/vite.php @@ -45,9 +45,11 @@ function isDev(string $entry): bool ) { $handle = curl_init(VITE_HOST . "/" . $entry); + curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); + curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_NOBODY, true); - curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); curl_exec($handle); $error = curl_errno($handle);