Skip to content

Commit cefa999

Browse files
add java generate
1 parent 78969c6 commit cefa999

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

wechaty-puppet-hostie/IO/Github/Wechaty/PuppetHostie/PuppetHostie.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,13 @@ private function _startGrpcClient() {
774774
$hostname = $discoverHostieIp[0] . ":" . $discoverHostieIp[1];
775775

776776
// update
777+
// \Grpc\ChannelCredentials::createSsl();
778+
$metadata = array(
779+
'authorization' => 'Wechaty ' . ($this->_puppetOptions ? $this->_puppetOptions->token : ""),
780+
);
777781
$this->_grpcClient = new \Wechaty\PuppetClient($hostname, [
778-
'credentials' => \Grpc\ChannelCredentials::createInsecure()
782+
'credentials' => \Grpc\ChannelCredentials::createInsecure(),
783+
'update_metadata' => $metadata,
779784
]);
780785
return $this->_grpcClient;
781786
}

0 commit comments

Comments
 (0)