Fix a variable name

Fix #494
This commit is contained in:
Guillaume Ayoub 2016-08-29 12:09:17 +02:00
parent 34ad1b9073
commit 947c57312c

View File

@ -163,7 +163,7 @@ def serve(configuration, logger):
server_class.certificate = configuration.get("server", "certificate")
server_class.key = configuration.get("server", "key")
server_class.ciphers = configuration.get("server", "ciphers")
server_class.certificate = getattr(
server_class.protocol = getattr(
ssl, configuration.get("server", "protocol"), ssl.PROTOCOL_SSLv23)
# Test if the SSL files can be read
for name in ("certificate", "key"):