mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Fix(#88): Workaround typo in Ookla Speedtest API
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy to Cloudflare Pages (3.114.12) (push) Has been cancelled
Build / Deploy to GitHub and GitLab (push) Has been cancelled
Build / Remove Artifacts after Deployment (push) Has been cancelled
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy to Cloudflare Pages (3.114.12) (push) Has been cancelled
Build / Deploy to GitHub and GitLab (push) Has been cancelled
Build / Remove Artifacts after Deployment (push) Has been cancelled
This commit is contained in:
@@ -33,13 +33,13 @@ const getSpeedtestHostsGroupsPromise = $$fetch('https://speedtest-net-servers.cd
|
||||
if (cur.host) {
|
||||
hn = tldts.getHostname(cur.host, { detectIp: false, validateHostname: true });
|
||||
if (hn) {
|
||||
prev.push(hn);
|
||||
prev.push(hn.trim()); // speedtest API typo: "url":"http:// t4y-toronto-ca-osts1.ser.tek4you.ca:8080/speedtest/upload.php"
|
||||
}
|
||||
}
|
||||
if (cur.url) {
|
||||
hn = fastUri.parse(cur.url).host;
|
||||
if (hn) {
|
||||
prev.push(hn);
|
||||
prev.push(hn.trim()); // speedtest API typo: "url":"http:// t4y-toronto-ca-osts1.ser.tek4you.ca:8080/speedtest/upload.php"
|
||||
}
|
||||
}
|
||||
return prev;
|
||||
@@ -62,7 +62,7 @@ const getLibrespeedBackendsPromise = $$fetch('https://speedtest-net-servers.cdn.
|
||||
if (cur.server) {
|
||||
hn = fastUri.parse(cur.server).host;
|
||||
if (hn) {
|
||||
prev.push(hn);
|
||||
prev.push(hn.trim());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user