TLS server: create public property for certPath
This commit is contained in:
parent
14af13c526
commit
21e19159e0
@ -54,9 +54,13 @@ class SyncFactory(Factory):
|
|||||||
self._statsRecorder.startRecorder(statsDelay)
|
self._statsRecorder.startRecorder(statsDelay)
|
||||||
else:
|
else:
|
||||||
self._statsDbHandle = None
|
self._statsDbHandle = None
|
||||||
self.options = None
|
|
||||||
if tlsCertPath is not 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):
|
def buildProtocol(self, addr):
|
||||||
return SyncServerProtocol(self)
|
return SyncServerProtocol(self)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user