Add output for disconnected
This commit is contained in:
parent
71c8a4685d
commit
a94602d0c7
1 changed files with 8 additions and 2 deletions
|
@ -10,5 +10,11 @@ country_code = pvpn_utils.get_server_value(connected_server, "ExitCountry", serv
|
|||
country = pvpn_utils.get_country_name(country_code)
|
||||
city = pvpn_utils.get_server_value(connected_server, "City", servers)
|
||||
|
||||
|
||||
print("VPN - {} ({}) - {}, {}".format(ip_addr, connected_server, city, country))
|
||||
if not pvpn_utils.is_connected():
|
||||
print("VPN - OFF")
|
||||
else:
|
||||
print(
|
||||
"VPN - {} ({}) - {}, {}".format(
|
||||
ip_addr, connected_server, city, country
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue