Skip to content

Conversation

@code-inflation
Copy link
Owner

@code-inflation code-inflation commented Jan 12, 2026

Fixes metadata parsing that broke due to Cloudflare API change. Cloudflare stopped sending cf-meta-* headers (except cf-meta-ip and cf-meta-request-time), causing most metadata fields to show "N/A".

This PR switches to using Cloudflare's cdn-cgi/trace endpoint to retrieve metadata.

Removed fields from Metadata struct:

  • city - Cloudflare's trace endpoint doesn't provide city information
  • asn - Cloudflare's trace endpoint doesn't provide ASN information

@code-inflation code-inflation merged commit 9513451 into master Jan 13, 2026
6 checks passed
@code-inflation code-inflation deleted the fix/metadata-cloudflare-api-change branch January 13, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants