def run(self):
""" Start the RPyC server
"""
if self.certfile is not None and self.keyfile is not None:
authenticator = SSLAuthenticator(self.certfile, self.keyfile)
self.server = ThreadedServer(
self.serviceClass,
hostname=self.host,
port=self.port,
protocol_config={'allow_all_attrs': True},
authenticator=authenticator,
cert_reqs=ssl.CERT_REQUIRED,
ciphers='EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH',
ssl_version=ssl.PROTOCOL_TLSv1_2)
else:
self.server = ThreadedServer(
self.serviceClass,
hostname=self.host,
port=self.port,
protocol_config={'allow_all_attrs': True})
self.server.start()
评论列表
文章目录