From a08165e8a56aac73b72cbe8e211a762848512ddf Mon Sep 17 00:00:00 2001 From: Piv <18462828+Piv200@users.noreply.github.com> Date: Sun, 24 Nov 2019 14:12:13 +1030 Subject: [PATCH] Temporarily disable security --- MotorControl/MotorServer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MotorControl/MotorServer.py b/MotorControl/MotorServer.py index 9205a55..aa7e304 100755 --- a/MotorControl/MotorServer.py +++ b/MotorControl/MotorServer.py @@ -57,7 +57,9 @@ class MotorServicer(motorService_pb2_grpc.CarControlServicer): def start_server(self): server = grpc.server(futures.ThreadPoolExecutor(max_workers=8)) motorService_pb2_grpc.add_CarControlServicer_to_server(self, server) - server.add_secure_port('[::]:50051', self.create_credentials()) + # Disable security for local testing. + # server.add_secure_port('[::]:50051', self.create_credentials()) + server.add_insecure_port('[::]:50051') server.start() while True: time.sleep(60*60)