From 260adb3ac9a07c152cca8696d785537d1cfd1b23 Mon Sep 17 00:00:00 2001 From: saidsurucu Date: Fri, 21 Nov 2025 21:56:10 +0300 Subject: [PATCH] =?UTF-8?q?Fix=20Python=203.11=20compatibility=20in=20K?= =?UTF-8?q?=C4=B0K=20v2=20client?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kik_mcp_module/client_v2.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kik_mcp_module/client_v2.py b/kik_mcp_module/client_v2.py index 2d624bd..55c5159 100644 --- a/kik_mcp_module/client_v2.py +++ b/kik_mcp_module/client_v2.py @@ -41,8 +41,9 @@ class KikV2ApiClient: ssl_context.check_hostname = False ssl_context.verify_mode = ssl.CERT_NONE - # Enable legacy server connect option for older SSL implementations - ssl_context.options |= ssl.OP_LEGACY_SERVER_CONNECT + # Enable legacy server connect option for older SSL implementations (Python 3.12+) + if hasattr(ssl, 'OP_LEGACY_SERVER_CONNECT'): + ssl_context.options |= ssl.OP_LEGACY_SERVER_CONNECT # Set broader cipher suite support including legacy ciphers ssl_context.set_ciphers('ALL:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA')