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

sdk/quote: fix quote server authority issue #105

Merged
merged 1 commit into from
Sep 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading