perf: no longer get host ip

This commit is contained in:
Junyan Qin
2025-05-21 19:42:04 +08:00
parent 4a988b89a2
commit e5b2da225c
2 changed files with 5 additions and 22 deletions

View File

@@ -1,10 +0,0 @@
import aiohttp
async def get_myip() -> str:
try:
async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=10)) as session:
async with session.get('https://ip.useragentinfo.com/myip') as response:
return await response.text()
except Exception:
return '0.0.0.0'