Temporarily disable security

This commit is contained in:
Piv
2019-11-24 14:12:13 +10:30
parent 2518cd7983
commit a08165e8a5

View File

@@ -57,7 +57,9 @@ class MotorServicer(motorService_pb2_grpc.CarControlServicer):
def start_server(self): def start_server(self):
server = grpc.server(futures.ThreadPoolExecutor(max_workers=8)) server = grpc.server(futures.ThreadPoolExecutor(max_workers=8))
motorService_pb2_grpc.add_CarControlServicer_to_server(self, server) 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() server.start()
while True: while True:
time.sleep(60*60) time.sleep(60*60)