Skip to content

Commit

Permalink
add wechaty ca, see #16
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchunsheng committed Nov 24, 2021
1 parent aa66372 commit e51c2e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ function ($metadata,
// WECHATY_PUPPET_SERVICE_TLS_CA_CERT
// WECHATY_PUPPET_SERVICE_TLS_SERVER_NAME
$noTls = getenv("WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_CLIENT");
if(empty($noTls) || $noTls === "true" || $noTls === true) {
if($noTls === "true" || $noTls === true) {
Logger::DEBUG("start client with no tls");
$this->_grpcClient = new \Wechaty\PuppetClient($hostname, [
'credentials' => \Grpc\ChannelCredentials::createInsecure(),
Expand Down

0 comments on commit e51c2e1

Please sign in to comment.