wip: 2026-08-11 工作树快照(docs/memory/h5.py/scripts 等 447 项未评审改动,安全提交到 feat 分支)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env python3
|
||||
"""测试 Dify 多个端口"""
|
||||
import httpx
|
||||
import asyncio
|
||||
|
||||
async def test_ports():
|
||||
async with httpx.AsyncClient(timeout=10) as client:
|
||||
ports = [80, 8080, 3000, 5000]
|
||||
for port in ports:
|
||||
url = f"http://10.80.0.240:{port}/"
|
||||
try:
|
||||
r = await client.get(url)
|
||||
print(f"Port {port}: {r.status_code}")
|
||||
except Exception as e:
|
||||
print(f"Port {port}: FAIL - {type(e).__name__}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(test_ports())
|
||||
Reference in New Issue
Block a user