From e3221eca934097b95a2b5c0d1311c6ab7bd44799 Mon Sep 17 00:00:00 2001 From: Anton Nesterov Date: Tue, 30 Jan 2024 12:36:01 +0000 Subject: [PATCH] Update internal/configuration/settings/serverselection.go Co-authored-by: Quentin McGaw --- internal/configuration/settings/serverselection.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/configuration/settings/serverselection.go b/internal/configuration/settings/serverselection.go index 0976b026e..9b91c8087 100644 --- a/internal/configuration/settings/serverselection.go +++ b/internal/configuration/settings/serverselection.go @@ -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) }