Skip to content

Commit 3a75095

Browse files
committed
Amend CURLPROXY_SOCKS5_HOSTNAME check
1 parent eb713df commit 3a75095

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/codebird.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,7 @@ public function setReturnFormat($return_format)
722722
public function setProxy($host, $port, $type = CURLPROXY_HTTP)
723723
{
724724
$types = [
725-
CURLPROXY_HTTP, CURLPROXY_SOCKS4, CURLPROXY_SOCKS5,
726-
CURLPROXY_SOCKS5_HOSTNAME
725+
CURLPROXY_HTTP, CURLPROXY_SOCKS4, CURLPROXY_SOCKS5
727726
];
728727
// PHP 7.0+, keep this as long as PHP 5.6 is supported
729728
if (defined('CURLPROXY_SOCKS4A')) {

0 commit comments

Comments
 (0)