Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f48bf76

Browse files
add wechaty ca, see #16
1 parent 23a2032 commit f48bf76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎wechaty-puppet-service/IO/Github/Wechaty/PuppetService/PuppetService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,11 +798,13 @@ function ($metadata,
798798
// WECHATY_PUPPET_SERVICE_TLS_SERVER_NAME
799799
$noTls = getenv("WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_CLIENT");
800800
if($noTls) {
801+
Logger::DEBUG("start client with no tls");
801802
$this->_grpcClient = new \Wechaty\PuppetClient($hostname, [
802803
'credentials' => \Grpc\ChannelCredentials::createInsecure(),
803804
'update_metadata' => $updateMetadata,
804805
]);
805806
} else {
807+
Logger::DEBUG("start client with tls");
806808
$this->_grpcClient = new \Wechaty\PuppetClient($hostname, [
807809
'credentials' => \Grpc\ChannelCredentials::createSsl(WechatyCA::TLS_CA_CERT, WechatyCA::TLS_INSECURE_SERVER_KEY, WechatyCA::TLS_INSECURE_SERVER_CERT),
808810
'update_metadata' => $updateMetadata,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /