Add output for disconnected

This commit is contained in:
flyingscorpio@arch-desktop 2020-04-21 09:52:30 +02:00
parent 71c8a4685d
commit a94602d0c7

View file

@ -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
)
)