librespeed / speedtest-cli

Command line client for LibreSpeed
GNU Lesser General Public License v3.0
487 stars 60 forks source link

change server url from command line. #19

Closed luckydonald closed 3 years ago

luckydonald commented 3 years ago

There doesn't seem to be an option to change the server without writing a file to the system.

Even using the typical dash to try to use stdin as a file (-) didn't work.

echo '[{"id": 1,"name": "a","server": "https://speedtest.example.com/","dlURL": "garbage.php","ulURL": "empty.php","pingURL": "empty.php","getIpURL": "getIP.php"}]' | librespeed-cli --local-json -