Skip to content

Commit

Permalink
Select only OpenVPN servers if PROTOCOL is not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
azinchen committed May 5, 2018
1 parent b135347 commit ce80e30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nordVpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ servers=`echo $filtered | jq -s -a 'unique[]'`
filtered=""

if [[ -z "${PROTOCOL}" ]]; then
filtered=$servers
filtered=`echo $servers | jq -c 'select(.features.openvpn_udp == true)'\
echo $servers | jq -c 'select(.features.openvpn_tcp == true)'`
else
filtered=`echo $servers | jq -c 'select(.features.'$PROTOCOL' == true)'`
fi
Expand Down

0 comments on commit ce80e30

Please sign in to comment.