KNawm/speed-cloudflare-cli

Incorrect resolution in CF internal service for Dubai and Johannesburg (and possibly others)

Opened this issue · 0 comments

curl https://speed.cloudflare.com/cdn-cgi/trace
fl=136f4
h=speed.cloudflare.com
ip=216.155.55.42
ts=1650455342.373
visit_scheme=https
uag=curl/7.68.0
colo=DUR
http=http/2
loc=AE
tls=TLSv1.3
sni=plaintext
warp=off
gateway=off

The location in https://speed.cloudflare.com/locations is correct, but for some reason it returns Durban (DUR) South Africa instead of DXB for Dubai and the subsequent test fails. I find no contact page for the Speedtest page to contact anyone, but maybe you know someone who can fix it.

Similarly for Johannesburg it returns Frankfurt (FRA). Latency is obviously horrible and the tests are worthless. I believe that there is probably an indexing error in the internal speedtest API which is not fixable from your code because it is not resolving a specific endpoint, but only for display purposes.