sindresorhus / fast-cli

Test your download and upload speed using fast.com
MIT License
2.58k stars 110 forks source link

Ignore HTTPS errors when over proxy (or security services) #78

Open mattia-maggioli opened 2 years ago

mattia-maggioli commented 2 years ago

When the machine running fast-cli is behind an http/https proxy, fast-cli returns the error

› net::ERR_CERT_AUTHORITY_INVALID at https://fast.com

If I change line 54 of api.js to include --ignore-certificate-errors then fast-cli returns the error

› Evaluation failed: TypeError: Cannot read properties of null (reading
  'textContent')
      at __puppeteer_evaluation_script__:5:44

Would be great to add a flag to ignore https errors so that fast-cli can be used also with proxies or security services that inspect http/https traffic. Thanks!

zioalex commented 1 year ago

@mattia-maggioli what did you change? What be great to have this capability.