mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-18 06:15:37 +08:00
Bypass curl test on swow loaded time
This commit is contained in:
@@ -8,7 +8,7 @@ assert(function_exists('curl_exec'));
|
|||||||
assert(function_exists('curl_close'));
|
assert(function_exists('curl_close'));
|
||||||
assert(function_exists('curl_version'));
|
assert(function_exists('curl_version'));
|
||||||
$curl_version = curl_version();
|
$curl_version = curl_version();
|
||||||
if (stripos($curl_version['ssl_version'], 'schannel') !== false) {
|
if (stripos($curl_version['ssl_version'], 'schannel') !== false && !extension_loaded('swow')) {
|
||||||
$domain_list = [
|
$domain_list = [
|
||||||
'https://captive.apple.com/',
|
'https://captive.apple.com/',
|
||||||
'https://detectportal.firefox.com/',
|
'https://detectportal.firefox.com/',
|
||||||
|
|||||||
Reference in New Issue
Block a user