feat(vpn): VPN_ENDPOINT_PORT

- Deprecate `OPENVPN_PORT`
- Deprecate `WIREGUARD_ENDPOINT_PORT`
This commit is contained in:
Quentin McGaw
2022-01-28 00:10:23 +00:00
parent a951110461
commit ea143c0c9a
3 changed files with 26 additions and 12 deletions

View File

@@ -53,7 +53,7 @@ func getWireguardConnection(selection settings.ServerSelection) (
}
}
// Port found is overridden by custom port set with `PORT` or `WIREGUARD_ENDPOINT_PORT`.
// Port found is overridden by custom port set with `VPN_ENDPOINT_PORT`.
func getPort(foundPort uint16, selection settings.ServerSelection) (port uint16) {
return utils.GetPort(selection, foundPort, foundPort, foundPort)
}