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)
|
||||
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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user