diff --git a/internal/provider/privatevpn/connection.go b/internal/provider/privatevpn/connection.go index 9e76f43b..7c0b6a3e 100644 --- a/internal/provider/privatevpn/connection.go +++ b/internal/provider/privatevpn/connection.go @@ -15,6 +15,9 @@ func (p *Privatevpn) GetConnection(selection configuration.ServerSelection) ( protocol = constants.TCP port = 443 } + if selection.OpenVPN.CustomPort > 0 { + port = selection.OpenVPN.CustomPort + } servers, err := p.filterServers(selection) if err != nil {