Skip to content

Commit

Permalink
fix(speedtest-cli): avoid speedtest DNS error
Browse files Browse the repository at this point in the history
Avoid intermitten 403 error caused by speedtest DNS by using secure
add --secure to speedtest-cli command
  • Loading branch information
rafazafar committed Oct 20, 2022
1 parent 44a5791 commit bc0e9f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/static-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export const runSpeedTest = async (): Promise<string> => {
});
} else if (await commandExists('speedtest-cli')) {
usedRunner = 'speedtest-cli';
const { stdout } = await exec('speedtest-cli --json');
const { stdout } = await exec('speedtest-cli --json --secure');
const json = JSON.parse(stdout);

STATIC_INFO.next({
Expand Down

0 comments on commit bc0e9f5

Please sign in to comment.