Open hgenchev99 opened 3 years ago
Info about the server provided in the example
{
"Name": "CA#7",
"EntryCountry": "CA",
"ExitCountry": "CA",
"Domain": "172.83.40.66",
"Tier": 2,
"Features": 8,
"Region": null,
"City": "Vancouver",
"Score": 1.27208323,
"HostCountry": null,
"Location": {
"Lat": 49.25,
"Long": -123.133
},
"Status": 1,
"Servers": [
{
"EntryIP": "172.83.40.66",
"ExitIP": "172.83.40.69",
"Domain": "lxc-ca-02.protonvpn.com",
"Label": "1",
"Generation": 0,
"Status": 1,
"ServicesDownReason": null
}
],
"Load": 58
}
Describe the bug When calling
protonvpn status
sometimes it fails withKeyError: 8
orKeyError: 16
. The API was updated (supposedly) and now it features two new featuresStreaming
andIPv6
with corresponding keys of8
and16
but the status function was not updated to handle the two new types.To Reproduce Steps to reproduce the behavior:
Expected behavior The connection status
Error Messages/Program Output/Log Messages (output of the status command)
Desktop (please complete the following information):
Additional context This dict has to be updated with the two new features https://github.com/ProtonVPN/linux-cli-community/blob/master/protonvpn_cli/connection.py#L399