Skip to content

Commit

Permalink
fix: Conditional checks for PROTONVPN_TIER #74
Browse files Browse the repository at this point in the history
Co-authored-by: Taylor Kimball <tkimball@linuxhq.org>
  • Loading branch information
tkimball83 and Taylor Kimball authored Sep 24, 2021
1 parent 38093e9 commit 244dbae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/etc/services.d/protonvpn/run
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function connect_vpn() {
PVPN_DEBUG="${DEBUG:-0}" protonvpn connect --random

elif [[ ${PROTONVPN_SERVER} == "P2P" ]]; then
if [[ ${CFG_TIER} -lt 1 ]]; then
if [[ ${PROTONVPN_TIER} -lt 1 ]]; then
log_error "Using P2P requires basic plan or above!"
exit 4
else
Expand Down

0 comments on commit 244dbae

Please sign in to comment.