Maint: rename wireguard CustomPort

This commit is contained in:
Quentin McGaw (desktop)
2021-09-10 19:07:14 +00:00
parent 094de89a3e
commit 145da0b21d
7 changed files with 12 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ func GetPort(selection configuration.ServerSelection,
defaultOpenVPNTCP, defaultOpenVPNUDP, defaultWireguard uint16) (port uint16) {
switch selection.VPN {
case constants.Wireguard:
customPort := selection.Wireguard.CustomPort
customPort := selection.Wireguard.EndpointPort
if customPort > 0 {
return customPort
}