From 21e19159e035888389d3d669b469be86d1ec16e8 Mon Sep 17 00:00:00 2001 From: Alberto Sottile Date: Tue, 19 Feb 2019 09:00:55 +0100 Subject: [PATCH] TLS server: create public property for certPath --- syncplay/server.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/syncplay/server.py b/syncplay/server.py index 36143bf..3a9612c 100755 --- a/syncplay/server.py +++ b/syncplay/server.py @@ -54,9 +54,13 @@ class SyncFactory(Factory): self._statsRecorder.startRecorder(statsDelay) else: self._statsDbHandle = None - self.options = None if tlsCertPath is not None: - self._allowTLSconnections(tlsCertPath) + self.certPath = tlsCertPath + self._allowTLSconnections(self.certPath) + else: + self.certPath = None + self.options = None + self.serverAcceptsTLS = False def buildProtocol(self, addr): return SyncServerProtocol(self)