qqq
This commit is contained in:
+10
-10
@@ -19,16 +19,16 @@ trait TSwooleClient
|
|||||||
if ($this->getConnectTimeout() > 0) {
|
if ($this->getConnectTimeout() > 0) {
|
||||||
$params['timeout'] = $this->getConnectTimeout();
|
$params['timeout'] = $this->getConnectTimeout();
|
||||||
}
|
}
|
||||||
if (empty($sslCert) || empty($sslKey) || empty($sslCa)) {
|
$params['ssl_host_name'] = $this->getHost();
|
||||||
return $params;
|
if (!empty($sslCert)) {
|
||||||
}
|
$params['ssl_cert_file'] = $this->getSslCertFile();
|
||||||
|
}
|
||||||
$params['ssl_host_name'] = $this->getHost();
|
if (!empty($sslKey)) {
|
||||||
$params['ssl_cert_file'] = $this->getSslCertFile();
|
$params['ssl_key_file'] = $this->getSslKeyFile();
|
||||||
$params['ssl_key_file'] = $this->getSslKeyFile();
|
}
|
||||||
$params['ssl_verify_peer'] = TRUE;
|
if (!empty($sslCa)) {
|
||||||
$params['ssl_cafile'] = $sslCa;
|
$params['ssl_cafile'] = $sslCa;
|
||||||
|
}
|
||||||
return $params;
|
return $params;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user