Explicitely set TLS options to None when server config is not valid
This commit is contained in:
parent
0f10161d86
commit
e16775c33b
@ -223,6 +223,7 @@ class SyncFactory(Factory):
|
||||
raiseMinimumTo=ssl.TLSVersion.TLSv1_2)
|
||||
self.options = contextFactory
|
||||
except Exception as e:
|
||||
self.options = None
|
||||
print(e)
|
||||
print("TLS support is not enabled.")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user