aboutsummaryrefslogtreecommitdiff
path: root/IRCServer.py
diff options
context:
space:
mode:
authorGravatar jesopo2017-11-01 14:16:01 +0000
committerGravatar jesopo2017-11-01 14:16:01 +0000
commite63438e2bbbec72b6b42f5910642b559f4140d20 (patch)
tree4e21706be2480d2bdfc205fa19330da3c7cba286 /IRCServer.py
parentunsupported operand type(s) for %: 'bytes' and 'bytes' (diff)
signature
Add OP_NO_TLSv1 and fix a bug created while fixing another bug
Diffstat (limited to 'IRCServer.py')
-rw-r--r--IRCServer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/IRCServer.py b/IRCServer.py
index e6f1919d..44ffb89c 100644
--- a/IRCServer.py
+++ b/IRCServer.py
@@ -45,6 +45,7 @@ class Server(object):
context = ssl.SSLContext(OUR_TLS_PROTOCOL)
context.options |= ssl.OP_NO_SSLv2
context.options |= ssl.OP_NO_SSLv3
+ context.options |= ssl.OP_NO_TLSv1
self.socket = context.wrap_socket(self.socket)
self.cached_fileno = self.socket.fileno()
self.bot.events.on("timer").on("rejoin").hook(self.try_rejoin)