Skip to content

Commit

Permalink
Merge pull request #195 from BroderPeters/master
Browse files Browse the repository at this point in the history
Remove deprecated ProtonVPN Basic plan
  • Loading branch information
jamesmcm authored Dec 1, 2022
2 parents 4b4056d + 2385965 commit 7b645a3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions vopono_core/src/config/providers/protonvpn/openvpn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,13 @@ impl OpenVpnProvider for ProtonVPN {
#[derive(EnumIter, PartialEq)]
enum Tier {
Plus,
Basic,
Free,
}

impl Tier {
fn url_part(&self) -> String {
match self {
Self::Plus => "2".to_string(),
Self::Basic => "1".to_string(),
Self::Free => "0".to_string(),
}
}
Expand All @@ -203,7 +201,6 @@ impl Display for Tier {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let s = match self {
Self::Plus => "Plus",
Self::Basic => "Basic",
Self::Free => "Free",
};
write!(f, "{}", s)
Expand All @@ -212,7 +209,7 @@ impl Display for Tier {

impl Default for Tier {
fn default() -> Self {
Self::Basic
Self::Free
}
}

Expand All @@ -232,7 +229,6 @@ impl ConfigurationChoice for Tier {
Some(
match self {
Self::Plus => "Plus Account provides more VPN servers and SecureCore configuration",
Self::Basic => "Provides core VPN servers",
Self::Free => "Free VPN servers only",
}
.to_string(),
Expand Down

0 comments on commit 7b645a3

Please sign in to comment.