fix(cloudflare): report configured create path

This commit is contained in:
github-actions[bot]
2026-07-06 05:06:28 +00:00
parent d45001da8b
commit 1ff4ef2587
+2 -2
View File
@@ -246,11 +246,11 @@ def cloudflare_create_temp_address(api_base):
try: try:
data = resp.json() data = resp.json()
except Exception: except Exception:
raise Exception(f"Cloudflare /api/new_address 返回非JSON: {resp.text[:300]}") raise Exception(f"Cloudflare {path} 返回非JSON: {resp.text[:300]}")
address = data.get("address") address = data.get("address")
jwt = data.get("jwt") jwt = data.get("jwt")
if not address or not jwt: if not address or not jwt:
raise Exception(f"Cloudflare /api/new_address 缺少 address/jwt: {data}") raise Exception(f"Cloudflare {path} 缺少 address/jwt: {data}")
return address, jwt return address, jwt