Commit 02343d21 authored by Emmanuel Gil Peyrot's avatar Emmanuel Gil Peyrot

Fix deprecation warning, cipher_list must be bytes and not str.

parent e9d2f233
......@@ -267,9 +267,9 @@ class NonBlockingTLS(PlugIn):
self.cacerts = cacerts
self.mycerts = mycerts
if cipher_list is None:
self.cipher_list = 'HIGH:!aNULL:RC4-SHA'
self.cipher_list = b'HIGH:!aNULL:RC4-SHA'
self.cipher_list = cipher_list
self.cipher_list = cipher_list.encode('ascii')
if tls_version is None:
self.tls_version = '1.0'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment