Maint: WIREGUARD_PORT to WIREGUARD_ENDPOINT_PORT

This commit is contained in:
Quentin McGaw (desktop)
2021-09-13 20:06:47 +00:00
parent 8645d978ba
commit 2cf7f7b268
6 changed files with 30 additions and 15 deletions

View File

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