mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 03:24:54 +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
40382002f6
commit
2c1a863ffb
1 changed files with 2 additions and 1 deletions
|
@ -584,7 +584,8 @@ class ServerContextFactory:
|
|||
|
||||
def getContext(self):
|
||||
"""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