Added auto selector for NordVPN

Re-using parts of @Bubuntux script I've repurposed the selector of the config for NordVPN using their public api
This commit is contained in:
Tom Humphrey
2019-03-05 15:19:00 +00:00
parent beb4618a08
commit 34cee0c0c4
2 changed files with 68 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ if [[ "$OPENVPN_PROVIDER" = "NORDVPN" ]]
then
if [[ -z "$OPENVPN_CONFIG" ]]
then
export OPENVPN_CONFIG=$(curl -s 'https://nordvpn.com/wp-admin/admin-ajax.php?action=servers_recommendations' | jq -r '.[0].hostname').udp
export OPENVPN_CONFIG=$(./NordVPN.sh)
echo "Setting best server ${OPENVPN_CONFIG}"
fi
fi