feat(privatevpn): support OPENVPN_PORT

This commit is contained in:
Quentin McGaw
2021-11-17 22:32:18 +00:00
parent 8f080c537b
commit 8dc54a7c44

View File

@@ -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 {