From e51c2e1f5db2a0ece1f2c3681e1fcf7df9a7b8ce Mon Sep 17 00:00:00 2001 From: zhangchunsheng Date: Wed, 24 Nov 2021 15:42:27 +0800 Subject: [PATCH] add wechaty ca, see #16 --- .../IO/Github/Wechaty/PuppetService/PuppetService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wechaty-puppet-service/IO/Github/Wechaty/PuppetService/PuppetService.php b/wechaty-puppet-service/IO/Github/Wechaty/PuppetService/PuppetService.php index b66bc20..0a9f9c7 100644 --- a/wechaty-puppet-service/IO/Github/Wechaty/PuppetService/PuppetService.php +++ b/wechaty-puppet-service/IO/Github/Wechaty/PuppetService/PuppetService.php @@ -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(),