Skip to content

Commit f669669

Browse files
Fixed ssl-SSLContext error
1 parent 7bf0a66 commit f669669

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/bot.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def connect(self):
9696
self.ircsock.settimeout(240)
9797

9898
ifstr(self.config['BPORT'])[:1] =='+':
99-
self.ircsock=ssl.wrap_socket(self.ircsock)
99+
context=ssl.create_default_context()
100+
self.ircsock=context.wrap_socket(self.ircsock, server_hostname=self.config['BSERVER'])
100101
port=int(self.config['BPORT'][1:])
101102
else:
102103
port=int(self.config['BPORT'])

0 commit comments

Comments
(0)