Maint: rename wireguard CustomPort
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ func Test_GetPort(t *testing.T) {
|
||||
selection: configuration.ServerSelection{
|
||||
VPN: constants.Wireguard,
|
||||
Wireguard: configuration.WireguardSelection{
|
||||
CustomPort: 1234,
|
||||
EndpointPort: 1234,
|
||||
},
|
||||
},
|
||||
port: 1234,
|
||||
|
||||
Reference in New Issue
Block a user