jotyGill / openpyn-nordvpn

Easily connect to and switch between, OpenVPN servers hosted by NordVPN on Linux (+patch leakes)
GNU General Public License v3.0
628 stars 114 forks source link

download of ovpn.zip uses critical bandwidth #291

Open christopherreay opened 2 years ago

christopherreay commented 2 years ago

Hiya,

so in this current incarnation of openpyn (ty), every time I connect, the entire ovpn.zip is downloaded, which is fine.

However, in a scenario where, e.g. there is 200kb/s bandwidth, the download disables my internet for.. sometimes several minutes, sometimes longer, having saturated the download.

Any suggestions / tell me im wrong / ideas for a fix?

christopherreay commented 1 year ago

so the "nord API", functions by downloading a 25 MB file of JSON at most every 5 minutes, each time openPyn is used.

downloading the file can cause openpyn to become unresponsive. Plus...

I mean, an API is not "download 25MB and JSON and filter the JSON for what you need".

There are other options in the API to get recommended servers, etc. It looks to me like you have tried to use the nordVPN "API" to provide the same outpout as you used to get using the other method.

This makes openPyn unusable for me in quite a of scenarios... I mean.... on a 100kb/s line, it takes about 3 minutes to download this file, during which time the internet is totally saturated.

Do you have any suggestions for an alternative? what i am going to end up doing is .

nvm, Ill just sto pusig this utility.

Thank you for all the fish! :)

christopherreay commented 1 year ago

So it appears that if I give openpyn a specific server to connect to, it doesnt download the "API" JSON.

So what I have done is just create a script that gets the recommended server for some country from the nordvpn servers, and then runs openpyn with that.

Works very nicely.

Was unusable before.

Im surprised no one else has mentioned this issue. 25MB is a lot of data to just grab without any choice.

(obvs on a phat internet connection, its not, but otherwise, impossible)