fix(provider/pia): update default OpenVPN ports

- 8080 for UDP
- 8443 for TCP
- According to https://github.com/pia-foss/manual-connections/commit/8a75e46be81583d17f9ab3570881419b35000969
- Credits to @darthShadow
This commit is contained in:
Quentin McGaw
2026-05-06 05:00:39 +00:00
parent 12f08bf5ad
commit 548e4342c9
2 changed files with 3 additions and 3 deletions
@@ -100,7 +100,7 @@ func (o OpenVPNSelection) validate(vpnProvider string) (err error) {
allowedTCP = []uint16{443, 1194, 8080, 8443} allowedTCP = []uint16{443, 1194, 8080, 8443}
allowedUDP = []uint16{443, 1194, 8080, 8443} allowedUDP = []uint16{443, 1194, 8080, 8443}
case providers.PrivateInternetAccess: case providers.PrivateInternetAccess:
allowedTCP = []uint16{80, 110, 443, 501, 502} allowedTCP = []uint16{80, 110, 443, 501, 502, 8443}
allowedUDP = []uint16{53, 1194, 1197, 1198, 8080, 9201} allowedUDP = []uint16{53, 1194, 1197, 1198, 8080, 9201}
case providers.Protonvpn: case providers.Protonvpn:
allowedTCP = []uint16{443, 5995, 8443} allowedTCP = []uint16{443, 5995, 8443}
@@ -17,8 +17,8 @@ func (p *Provider) GetConnection(selection settings.ServerSelection, ipv6Support
defaults.OpenVPNTCPPort = 502 defaults.OpenVPNTCPPort = 502
defaults.OpenVPNUDPPort = 1198 defaults.OpenVPNUDPPort = 1198
case presets.Strong: case presets.Strong:
defaults.OpenVPNTCPPort = 501 defaults.OpenVPNTCPPort = 8443
defaults.OpenVPNUDPPort = 1197 defaults.OpenVPNUDPPort = 8080
} }
return utils.GetConnection(p.Name(), return utils.GetConnection(p.Name(),