Rafficer / linux-cli-community

Linux command-line client for ProtonVPN. Written in Python.
https://protonvpn.com
GNU General Public License v3.0
1.31k stars 198 forks source link

fix: add uid to fetch full list of free servers #345

Closed TooYoungTooSimp closed 1 year ago

TooYoungTooSimp commented 2 years ago

Without the x-pm-uid header, the server list, especially the free ones, returned by the API is unbelievably reduced (10 compared to actual number of 68).

The main problem is getting this uid needs to view cookies in the protonvpn dashboard, find a cookie named AUTH-{uid} and copy the uid out of its name.

TooYoungTooSimp commented 2 years ago

I have deployed my branch on my pc, and then the cli can connect whatever server is displayed in the protonvpn dashboard.