Skip to content

Commit

Permalink
Update internal/configuration/settings/serverselection.go
Browse files Browse the repository at this point in the history
Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com>
  • Loading branch information
komachi and qdm12 committed Jan 30, 2024
1 parent 6cfb1de commit e3221ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/configuration/settings/serverselection.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ func (ss *ServerSelection) validate(vpnServiceProvider string,

if *ss.PortForwardOnly &&
vpnServiceProvider != providers.PrivateInternetAccess {
// ProtonVPN also supports port forwarding, but on all their servers, so these
// don't have the port forwarding boolean field. As a consequence, we only allow
// the use of PortForwardOnly for Private Internet Access.
return fmt.Errorf("%w: for VPN service provider %s",
ErrPortForwardOnlyNotSupported, vpnServiceProvider)
}
Expand Down

0 comments on commit e3221ec

Please sign in to comment.