Closed brandomr closed 4 years ago
Thanks for your contribution! I have checked the code, this looks OK to me.
I'll check it later today and probably merge it.
The idea to have a randomize
is a really good idea 👍
Thanks for taking a look! I really like this library 🚀
I created an issue for the randomize
. #21
hey, this is a really good feature! would like to ask if its possible to specify a list of servers instead of just one such that a random one within the list will be selected based on CRON?
thanks
What's New
This PR allows the user to optionally set an environment variable
SERVER
when they run the container (throughdocker run
or in theirdocker-compose.yml
).If
SERVER
is not set, the default behavior of selecting the best server ensues.If
SERVER
is set (for example,SERVER=us2484.nordvpn.com
) thenus2484.nordvpn.com
is connected to until the specified load is exceeded.How is this useful
A user may want to specify a server in a specific city.
Also, for some tasks, it may be beneficial to periodically rotate the VPN address. This could be managed by the container with some
randomize
flag, or it can be managed by an external process. This PR allows the user to control this connection criteria through an external process.