Skip to content

Commit

Permalink
Merge branch 'fix/catch-unexpected-servername-value' into 'develop'
Browse files Browse the repository at this point in the history
Display message when incorrectly formatted servername is provided

See merge request ProtonVPN/linux/linux-cli!52
  • Loading branch information
calexandru2018 committed Dec 16, 2021
2 parents a7aa150 + 67ce3db commit 01acd65
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions 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.0
pkgrel=7
pkgver=3.11.1
pkgrel=1
pkgdesc="Official ProtonVPN CLI."
arch=("any")
url="https://github.com/ProtonVPN/"
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
protonvpn-cli (3.11.1-1) unstable; urgency=medium

* Bug: Display message when incorrectly formatted servername is provided

-- Proton Technologies AG <[email protected]> Thu, 16 Dez 2021 09:00:00 +0000

protonvpn-cli (3.11.0-7) unstable; urgency=medium

* Improve: Handle accounting use cases
Expand Down
4 changes: 2 additions & 2 deletions protonvpn_cli/cli_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def connect(self, args, only_free=False):
connect_type_extra_arg = cls_attr[0]
break

connect_type_extra_arg = cls_attr[1]
connect_type_extra_arg = cls_attr[1].replace(" ", "")

protocol = args.protocol

Expand Down Expand Up @@ -279,7 +279,7 @@ def connect(self, args, only_free=False):
)
print(killswitch_msg)
return 1
except exceptions.IllegalServername as e:
except exceptions.UnexpectedServername as e:
logger.exception(e)
print(
"\nProvided servername is invalid. Please ensure that you've "
Expand Down
2 changes: 1 addition & 1 deletion protonvpn_cli/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_VERSION = "3.11.0"
APP_VERSION = "3.11.1"
LOGGER_NAME = "protonvpn-cli"

MAIN_CLI_HELP = """
Expand Down
7 changes: 5 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.0
%define release 7
%define version 3.11.1
%define release 1

Prefix: %{_prefix}

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

%changelog
* Thu Dez 16 2021 Proton Technologies AG <[email protected]> 3.11.1-1
- Bug: Display message when incorrectly formatted servername is provided

* Thu Nov 12 2021 Proton Technologies AG <[email protected]> 3.11.0-7
- Improve: Handle accounting use cases

Expand Down

0 comments on commit 01acd65

Please sign in to comment.