Skip to content

Instantly share code, notes, and snippets.

@vasnake
Created October 25, 2014 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vasnake/156fe4bb34a50c7916e3 to your computer and use it in GitHub Desktop.
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.
--- 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