Skip to content

Commit

Permalink
only pass keyfile and certfile to legacy wrap_socket if they are actu…
Browse files Browse the repository at this point in the history
…ally set

git-svn-id: https://xpra.org/svn/Xpra/trunk@13160 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Aug 1, 2016
1 parent 9e12aa0 commit 6eba1de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1652,8 +1652,8 @@ def ssl_wrap_socket_fn(opts, server_side=True):
"cert_reqs" : ssl_cert_reqs,
"ssl_version" : ssl_protocol,
"ca_certs" : ssl_ca_certs,
"keyfile" : opts.ssl_key,
"certfile" : opts.ssl_cert,
"keyfile" : opts.ssl_key or None,
"certfile" : opts.ssl_cert or None,
})
wrap_socket = ssl.wrap_socket
del opts
Expand Down

0 comments on commit 6eba1de

Please sign in to comment.