Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
sdk/quote: fix quote server authority issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dongx1x authored and Ruoyu-y committed Sep 1, 2023
1 parent 353e456 commit 4a77d7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/python3/ccnp/quote/quote_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def request(self, nonce: str, user_data: str) -> Optional[quote_server_pb2.GetQu
if self._channel is None:
if not os.path.exists(self._server.replace('unix:', '')):
raise RuntimeError("Quote server does not start.")
self._channel = grpc.insecure_channel(self._server)
self._channel = grpc.insecure_channel(self._server,
options=[('grpc.default_authority', 'localhost')])
try:
grpc.channel_ready_future(self._channel).result(timeout=TIMEOUT)
except grpc.FutureTimeoutError as err:
Expand Down

0 comments on commit 4a77d7f

Please sign in to comment.