Add OP_NO_TLSv1 and fix a bug created while fixing another bug
This commit is contained in:
parent
8a48d0e74c
commit
e63438e2bb
2 changed files with 4 additions and 2 deletions
|
@ -200,10 +200,11 @@ def handle_QUIT(data):
|
|||
|
||||
@handler(description="The server is telling us about its capabilities!")
|
||||
def handle_CAP(data):
|
||||
capibility_list = []
|
||||
if len(data.args) > 2:
|
||||
capability_list = data.args[2].split()
|
||||
bot.events.on("received").on("cap").call(data=data,
|
||||
subcommand=data.args[1], capabilities=capability_list)
|
||||
bot.events.on("received").on("cap").call(data=data,
|
||||
subcommand=data.args[1], capabilities=capability_list)
|
||||
|
||||
@handler(description="The server is asking for authentication")
|
||||
def handle_AUTHENTICATE(data):
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue