Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #885 from deNBI/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
dweinholz authored Nov 3, 2021
2 parents a877594 + 0688d66 commit 7f0fc41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion VirtualMachineService/VirtualMachineServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import yaml
import click
import signal
import ssl

USERNAME = "OS_USERNAME"
PASSWORD = "OS_PASSWORD"
Expand Down Expand Up @@ -71,7 +72,7 @@ def catch_shutdown(signal, frame):
processor = Processor(handler)
if USE_SSL:
click.echo("Use SSL")
transport = TSSLSocket.TSSLServerSocket(host=HOST, port=PORT, certfile=CERTFILE)
transport = TSSLSocket.TSSLServerSocket(host=HOST, port=PORT, certfile=CERTFILE,ssl_version=ssl.PROTOCOL_TLS_SERVER)
else:
click.echo("Does not use SSL")
transport = TSocket.TServerSocket(host=HOST, port=PORT)
Expand Down

0 comments on commit 7f0fc41

Please sign in to comment.