From 8dc54a7c4486a9e34c4824ac52a5583f239ba961 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Wed, 17 Nov 2021 22:32:18 +0000 Subject: [PATCH] feat(privatevpn): support `OPENVPN_PORT` --- internal/provider/privatevpn/connection.go | 3 +++ 1 file changed, 3 insertions(+) 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 {