正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -1032,13 +1032,13 @@ class Imap { | @@ -1032,13 +1032,13 @@ class Imap { | ||
| 1032 | $this->timeout = $timeout ? : 30; | 1032 | $this->timeout = $timeout ? : 30; | 
| 1033 | 1033 | ||
| 1034 | // 是否验证证书 | 1034 | // 是否验证证书 | 
| 1035 | - $isssl = in_array(parse_url($this->host)['host']??'1-1',['mail.laser-tech.com.cn']); | 1035 | +// $isssl = in_array(parse_url($this->host)['host']??'1-1',['mail.laser-tech.com.cn']); | 
| 1036 | 1036 | ||
| 1037 | // 链接服务器 | 1037 | // 链接服务器 | 
| 1038 | $this->socket = stream_socket_client($this->host, $errno, $error, $this->timeout,STREAM_CLIENT_CONNECT,stream_context_create([ | 1038 | $this->socket = stream_socket_client($this->host, $errno, $error, $this->timeout,STREAM_CLIENT_CONNECT,stream_context_create([ | 
| 1039 | 'ssl' => [ | 1039 | 'ssl' => [ | 
| 1040 | - 'verify_peer' => !$isssl, // 有的证书和域名不匹配,这里关闭认证 | ||
| 1041 | - 'verify_peer_name' => !$isssl,// 有的证书和域名不匹配,这里关闭认证 | 1040 | + 'verify_peer' => false, // 有的证书和域名不匹配,这里关闭认证 | 
| 1041 | + 'verify_peer_name' => false,// 有的证书和域名不匹配,这里关闭认证 | ||
| 1042 | // 'capture_peer_cert' => true, | 1042 | // 'capture_peer_cert' => true, | 
| 1043 | // 'capture_peer_cert_chain' => true, | 1043 | // 'capture_peer_cert_chain' => true, | 
| 1044 | // 'SNI_enabled' => true, | 1044 | // 'SNI_enabled' => true, | 
- 
请 注册 或 登录 后发表评论