From 01375ffcffd4d71ca5c4847d0b2b8639da031a54 Mon Sep 17 00:00:00 2001 From: Alexandru Cheltuitor Date: Fri, 25 Feb 2022 16:34:27 +0000 Subject: [PATCH] Add reconnect message --- arch/PKGBUILD | 2 +- debian/changelog | 2 +- protonvpn_cli/cli_wrapper.py | 12 ++++++++++-- rpmbuild/SPECS/protonvpn-cli.spec | 4 ++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/arch/PKGBUILD b/arch/PKGBUILD index 6fca53b..9538ed0 100644 --- a/arch/PKGBUILD +++ b/arch/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Proton Technologies AG pkgname=protonvpn-cli pkgver=3.11.1 -pkgrel=3 +pkgrel=4 pkgdesc="Official ProtonVPN CLI." arch=("any") url="https://github.com/ProtonVPN/" diff --git a/debian/changelog b/debian/changelog index e7e5396..86df97d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -protonvpn-cli (3.11.1-3) unstable; urgency=medium +protonvpn-cli (3.11.1-4) unstable; urgency=medium * Bugfix: Display message when incorrectly formatted servername is provided * Feature: Moderate NAT, Non Standard Ports diff --git a/protonvpn_cli/cli_wrapper.py b/protonvpn_cli/cli_wrapper.py index a45d5ed..d32b737 100644 --- a/protonvpn_cli/cli_wrapper.py +++ b/protonvpn_cli/cli_wrapper.py @@ -168,7 +168,11 @@ def set_moderate_nat(self, status): print(e) return 1 - print("\nModerate NAT has been {}d. ".format(status)) + print( + "\nModerate NAT has been {}d. " + "\nIf connected to VPN, please reconnect for " + "changes to take effect.".format(status) + ) return 0 def set_non_standard_ports(self, status): @@ -192,7 +196,11 @@ def set_non_standard_ports(self, status): print(e) return 1 - print("\nNon Standard Ports have been {}d. ".format(status)) + print( + "\nNon Standard Ports have been {}d. " + "\nIf connected to VPN, please reconnect for " + "changes to take effect.".format(status) + ) return 0 def logout(self): diff --git a/rpmbuild/SPECS/protonvpn-cli.spec b/rpmbuild/SPECS/protonvpn-cli.spec index f82f984..6a904a6 100644 --- a/rpmbuild/SPECS/protonvpn-cli.spec +++ b/rpmbuild/SPECS/protonvpn-cli.spec @@ -1,6 +1,6 @@ %define unmangled_name protonvpn-cli %define version 3.11.1 -%define release 3 +%define release 4 Prefix: %{_prefix} @@ -46,7 +46,7 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root) %changelog -* Thu Dez 16 2021 Proton Technologies AG 3.11.1-3 +* Thu Dez 16 2021 Proton Technologies AG 3.11.1-4 - Bugfix: Display message when incorrectly formatted servername is provided - Feature: Moderate NAT, Non Standard Ports