TLS server: create public property for certPath

This commit is contained in:
Alberto Sottile 2019-02-19 09:00:55 +01:00
parent 14af13c526
commit 21e19159e0

View File

@ -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)