Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
Fix hardcoded variable, forgotten comment. (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamaranch authored and mazen160 committed Nov 6, 2018
1 parent 006066a commit 4c30d59
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions protonvpn-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ response_cache = open("""$response_cache_path""", "r").read()
json_parsed_response = json.loads(response_cache)
output = []
for _ in json_parsed_response["LogicalServers"]:
if (_["Tier"] <= int("4")):
if (_["Tier"] <= int("""$tier""")):
output.append(_)
all_features = {"Secure Core": 1, "TOR": 2, "P2P": 4, "XOR": 8, "IPV6": 16}
Expand Down Expand Up @@ -1241,8 +1241,6 @@ END`
}
function get_countries_server_list() {
# function test() {
response_cache_path="$(get_protonvpn_cli_home)/.response_cache"
tier=$(cat "$(get_protonvpn_cli_home)/protonvpn_tier")
Expand All @@ -1252,7 +1250,7 @@ response_cache = open("""$response_cache_path""", "r").read()
json_parsed_response = json.loads(response_cache)
output = []
for _ in json_parsed_response["LogicalServers"]:
if (_["Tier"] <= int("4")):
if (_["Tier"] <= int("""$tier""")):
output.append(_)
all_features = {"SECURE_CORE": 1, "TOR": 2, "P2P": 4, "XOR": 8, "IPV6": 16}
Expand Down

0 comments on commit 4c30d59

Please sign in to comment.