ssl.CERT_NONE so ssl is usable for most people :)

This commit is contained in:
BuildTools 2021-03-26 16:02:31 +01:00
parent 4927723e25
commit dbe018e9e1

View file

@ -84,6 +84,7 @@ class IRCClient:
""" """
self.context = ssl.create_default_context() self.context = ssl.create_default_context()
self.context.check_hostname = False self.context.check_hostname = False
self.context.verify_mode = ssl.CERT_NONE
self.bare_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.bare_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.socket = self.context.wrap_socket(self.bare_socket) self.socket = self.context.wrap_socket(self.bare_socket)
self.nick = None self.nick = None