Skip to content

Commit

Permalink
Update/fix ProtonVpn api url
Browse files Browse the repository at this point in the history
  • Loading branch information
notDavid authored and tresni committed Mar 5, 2020
1 parent 02636aa commit a81d184
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Network/protonvpn.15m.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
free_servers = []
custom_servers = []

# Change this to track custom VPN servers
# Change this to track custom VPN servers. For example: ["NL#1", "NL#13", "NL#25"]
custom_server_names = []
# Change this to display/hide free VPN servers
display_free = True
Expand All @@ -35,9 +35,9 @@
# Nevertheless, this flag can be set to true for argos (gnome extension)

try:
api_response = urlopen("https://api.protonmail.ch/vpn/servers")
api_response = urlopen("https://api.protonmail.ch/vpn/logicals")
string_response = api_response.read().decode("utf-8")
available_servers = json.loads(string_response)["Servers"]
available_servers = json.loads(string_response)["LogicalServers"]

if display_free:
free_servers = [server for server in available_servers if server["Tier"] == 0]
Expand Down

0 comments on commit a81d184

Please sign in to comment.