mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +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_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 = [
|
||||
'https://captive.apple.com/',
|
||||
'https://detectportal.firefox.com/',
|
||||
|
||||
Reference in New Issue
Block a user