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
+1 -1
View File
@@ -88,7 +88,7 @@ func (s *Settings) Validate(forStartup bool) (err error) {
return errors.New("password not set")
}
case providers.Protonvpn:
const maxPortsCount = 4
const maxPortsCount = 5
if s.PortsCount > maxPortsCount {
return fmt.Errorf("ports count too high: %d > %d", s.PortsCount, maxPortsCount)
}