forked from platypush/platypush
[irc] A temporary workaround for SSL contexts.
This commit is contained in:
parent
61b2afce91
commit
010b52ed19
1 changed files with 2 additions and 0 deletions
|
@ -74,6 +74,8 @@ class IRCBot(irc.bot.SingleServerIRCBot):
|
|||
|
||||
if ssl:
|
||||
self._ssl_ctx = _ssl.create_default_context()
|
||||
# Temporary workaround for check_hostname issues on Python >= 3.12
|
||||
self._ssl_ctx.check_hostname = False
|
||||
connection_factory.wrapper = self._ssl_ctx.wrap_socket
|
||||
if ipv6:
|
||||
connection_factory.family = socket.AF_INET6
|
||||
|
|
Loading…
Reference in a new issue