mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
[WebUI] Modify SSL Context to allow >=TLSv1 protocol
* The TLSv1_METHOD is a fixed protocol version so this change will allow higher versions to be used where possible.
This commit is contained in:
parent
3689eb508e
commit
cb37198a9d
1 changed files with 2 additions and 1 deletions
|
@ -542,7 +542,8 @@ class ServerContextFactory:
|
|||
|
||||
def getContext(self): # NOQA
|
||||
"""Creates an SSL context."""
|
||||
ctx = SSL.Context(SSL.TLSv1_METHOD)
|
||||
ctx = SSL.Context(SSL.SSLv23_METHOD)
|
||||
ctx.set_options(SSL.OP_NO_SSLv2 | SSL.OP_NO_SSLv3)
|
||||
deluge_web = component.get("DelugeWeb")
|
||||
log.debug("Enabling SSL using:")
|
||||
log.debug("Pkey: %s", deluge_web.pkey)
|
||||
|
|
Loading…
Add table
Reference in a new issue