We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78969c6 commit cefa999Copy full SHA for cefa999
wechaty-puppet-hostie/IO/Github/Wechaty/PuppetHostie/PuppetHostie.php
@@ -774,8 +774,13 @@ private function _startGrpcClient() {
774
$hostname = $discoverHostieIp[0] . ":" . $discoverHostieIp[1];
775
776
// update
777
+ // \Grpc\ChannelCredentials::createSsl();
778
+ $metadata = array(
779
+ 'authorization' => 'Wechaty ' . ($this->_puppetOptions ? $this->_puppetOptions->token : ""),
780
+ );
781
$this->_grpcClient = new \Wechaty\PuppetClient($hostname, [
- 'credentials' => \Grpc\ChannelCredentials::createInsecure()
782
+ 'credentials' => \Grpc\ChannelCredentials::createInsecure(),
783
+ 'update_metadata' => $metadata,
784
]);
785
return $this->_grpcClient;
786
}
0 commit comments