Skip to content

Commit

Permalink
Add reconnect message
Browse files Browse the repository at this point in the history
  • Loading branch information
calexandru2018 committed Feb 25, 2022
1 parent 77d2d77 commit 01375ff
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion arch/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: Proton Technologies AG <[email protected]>
pkgname=protonvpn-cli
pkgver=3.11.1
pkgrel=3
pkgrel=4
pkgdesc="Official ProtonVPN CLI."
arch=("any")
url="https://github.com/ProtonVPN/"
Expand Down
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 10 additions & 2 deletions protonvpn_cli/cli_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions rpmbuild/SPECS/protonvpn-cli.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%define unmangled_name protonvpn-cli
%define version 3.11.1
%define release 3
%define release 4

Prefix: %{_prefix}

Expand Down Expand Up @@ -46,7 +46,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root)

%changelog
* Thu Dez 16 2021 Proton Technologies AG <[email protected]> 3.11.1-3
* Thu Dez 16 2021 Proton Technologies AG <[email protected]> 3.11.1-4
- Bugfix: Display message when incorrectly formatted servername is provided
- Feature: Moderate NAT, Non Standard Ports

Expand Down

0 comments on commit 01375ff

Please sign in to comment.