diff --git a/platypush/plugins/irc/_bot.py b/platypush/plugins/irc/_bot.py index c710c2dac5..33fa005d24 100644 --- a/platypush/plugins/irc/_bot.py +++ b/platypush/plugins/irc/_bot.py @@ -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