feat(protonvpn): use symmetric port forwarding for first port then asymmetric for next ports (#3345)

This commit is contained in:
Quentin McGaw
2026-05-24 16:47:58 -04:00
committed by GitHub
parent 6f5f518d1d
commit 2e20e2df66
4 changed files with 56 additions and 68 deletions
@@ -95,7 +95,7 @@ func (p PortForwarding) Validate(vpnProvider string) (err error) {
return errors.New("port forwarding password is empty")
}
case providers.Protonvpn:
const maxPortsCount = 4
const maxPortsCount = 5
if p.PortsCount > maxPortsCount {
return fmt.Errorf("ports count too high: %d > %d", p.PortsCount, maxPortsCount)
}