初始化
This commit is contained in:
9
src/common/tcp_connector.py
Normal file
9
src/common/tcp_connector.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import ssl
|
||||
import certifi
|
||||
import aiohttp
|
||||
|
||||
ssl_context = ssl.create_default_context(cafile=certifi.where())
|
||||
|
||||
|
||||
async def get_tcp_connector():
|
||||
return aiohttp.TCPConnector(ssl=ssl_context)
|
||||
Reference in New Issue
Block a user