Created
October 25, 2014 15:31
-
-
Save vasnake/156fe4bb34a50c7916e3 to your computer and use it in GitHub Desktop.
Deluge 1.3.7 core/rpcserver.py patch (http://dev.deluge-torrent.org/ticket/2555) resolving "client unable to connect" issue.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- rpcserver.py.orig 2014-10-25 19:03:15.841366375 +0400 | |
+++ rpcserver.py 2014-10-25 19:05:40.753392389 +0400 | |
@@ -131,7 +131,8 @@ | |
SSL transport. | |
""" | |
ssl_dir = deluge.configmanager.get_config_dir("ssl") | |
- ctx = SSL.Context(SSL.SSLv3_METHOD) | |
+ ctx = SSL.Context(SSL.SSLv23_METHOD) | |
+ ctx.set_options(SSL.OP_NO_SSLv2 & SSL.OP_NO_SSLv3) | |
ctx.use_certificate_file(os.path.join(ssl_dir, "daemon.cert")) | |
ctx.use_privatekey_file(os.path.join(ssl_dir, "daemon.pkey")) | |
return ctx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment