diff --git a/packages/nonebot-plugin-nailongremove-base/nonebot_plugin_nailongremove/frame_source.py b/packages/nonebot-plugin-nailongremove-base/nonebot_plugin_nailongremove/frame_source.py index 80ab0b4..22805f1 100644 --- a/packages/nonebot-plugin-nailongremove-base/nonebot_plugin_nailongremove/frame_source.py +++ b/packages/nonebot-plugin-nailongremove-base/nonebot_plugin_nailongremove/frame_source.py @@ -23,7 +23,14 @@ from nonebot_plugin_alconna.builtins.uniseg.market_face import MarketFace from nonebot_plugin_alconna.uniseg import Image, Segment, UniMessage from nonebot_plugin_alconna.uniseg.tools import image_fetch from PIL import Image as Img, ImageSequence - +import ssl +SSL_CONTEXT = ssl.create_default_context() +SSL_CONTEXT.set_ciphers('DEFAULT') +SSL_CONTEXT.options |= ssl.OP_NO_SSLv2 +SSL_CONTEXT.options |= ssl.OP_NO_SSLv3 +SSL_CONTEXT.options |= ssl.OP_NO_TLSv1 +SSL_CONTEXT.options |= ssl.OP_NO_TLSv1_1 +SSL_CONTEXT.options |= ssl.OP_NO_COMPRESSION T = TypeVar("T") class FrameSource(ABC, Generic[T]):