This commit is contained in:
春河晴
2025-06-05 15:52:28 +09:00
parent d4a76e094f
commit 3288051b42
3 changed files with 24 additions and 10 deletions

View File

@@ -0,0 +1,13 @@
import ssl
import certifi
import aiohttp
ssl_context = ssl.create_default_context(cafile=certifi.where())
connector = None
async def get_tcp_connector():
global connector
if connector is None:
connector = aiohttp.TCPConnector(ssl=ssl_context)
return connector