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(),