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)