mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-07 12:30:11 +02:00
e8c8742bae
- Fix VyprVPN port - Fix missing Auth overrides
13 lines
277 B
Go
13 lines
277 B
Go
package utils
|
|
|
|
import (
|
|
"math/rand"
|
|
|
|
"github.com/qdm12/gluetun/internal/models"
|
|
)
|
|
|
|
func PickRandomConnection(connections []models.OpenVPNConnection,
|
|
source rand.Source) models.OpenVPNConnection {
|
|
return connections[rand.New(source).Intn(len(connections))] //nolint:gosec
|
|
}
|