From 4a77d7f6a4049481a0af8fba94c306ed2060fd93 Mon Sep 17 00:00:00 2001 From: "Dong, Xiaocheng" Date: Thu, 31 Aug 2023 03:49:08 -0400 Subject: [PATCH] sdk/quote: fix quote server authority issue --- sdk/python3/ccnp/quote/quote_sdk.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/python3/ccnp/quote/quote_sdk.py b/sdk/python3/ccnp/quote/quote_sdk.py index 7c1f94e4..19a5cc85 100644 --- a/sdk/python3/ccnp/quote/quote_sdk.py +++ b/sdk/python3/ccnp/quote/quote_sdk.py @@ -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: