Spaces:
Running
Running
Commit History
7 days ago
-
Log whether the app can reach Cloudflare siteverify
In production every Turnstile check fails with a ConnectTimeout to challenges.cloudflare.com, on both attempts, though the Space reaches the Anthropic API and the HF Hub. The log does not tell whether IPv4, IPv6 or all of Cloudflare is unreachable, so the fix is unclear. When Turnstile is on, the app now tests the connection at startup and after a network error (at most every 10 minutes), in the background. It logs one "Turnstile probe:" line per check: DNS, TCP to each address, siteverify over the default route, IPv4 and IPv6, and https://www.cloudflare.com/. The siteverify checks send Cloudflare's test secret, never the real one.ae59f0f