Skip to content

Commit 713249b

Browse files
committed
fix: strict check
1 parent e4369b7 commit 713249b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/HTTP/CURLRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ protected function setCURLOptions(array $curlOptions = [], array $config = [])
650650
}
651651

652652
// Resolve IP
653-
if (array_key_exists('force_ip_resolve', $config) && $config['force_ip_resolve']) {
653+
if (array_key_exists('force_ip_resolve', $config) && is_string($config['force_ip_resolve']) && $config['force_ip_resolve'] !== '') {
654654
$protocolVersion = $config['force_ip_resolve'];
655655

656656
if ($protocolVersion === 'v4') {

0 commit comments

Comments
 (0)