Update frame_source.py

This commit is contained in:
Refound 2025-01-31 18:53:03 +08:00 committed by GitHub
parent 4b450c4e8f
commit bf7519ff7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]):