ssl.CERT_NONE so ssl is usable for most people :)
This commit is contained in:
parent
4927723e25
commit
dbe018e9e1
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue