triffid / pia-wg

Linux shell scripts for connecting to Private Internet Access VPN's Wireguard service
122 stars 14 forks source link

pia-wg.sh script has noisy curl output #10

Open bwitt opened 11 months ago

bwitt commented 11 months ago

When running pia-wg.sh, it outputs some extra noise from curl:

$ ./pia-wg.sh -c 
Generating new private key
Setting default location: any
Setting default wireguard interface name: pia
Cannot read '/home/bwitt/.config/pia-wg/pia-wg.conf', generating a default one
Please enter your privateinternetaccess.com username: pxxxxxxx
Config saved
Fetching new generation server list from PIA
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  119k    0  119k    0     0   300k      0 --:--:-- --:--:-- --:--:--  300k
Fetching PIA self-signed RSA certificate from github
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2718  100  2718    0     0  11099      0 --:--:-- --:--:-- --:--:-- 11139
Selecting server 2 from 3 choices
A new auth token is required.
Your password will NOT be saved.
Please enter your privateinternetaccess.com password for pxxxxxxx:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   193    0   140  100    53    522    197 --:--:-- --:--:-- --:--:--   722
triffid commented 11 months ago

Yep, useful for knowing if it's just slow or if your internet link is being dumb.

Feel free to chuck a -s into curl commands if you like