From 010b52ed1980ed321e86800ce0bd63abaa9f4e41 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 20 Nov 2024 01:35:44 +0100 Subject: [PATCH] [irc] A temporary workaround for SSL contexts. --- platypush/plugins/irc/_bot.py | 2 ++ 1 file changed, 2 insertions(+) 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