mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
d81d4bbda3
- Fixes #420 - Revert to docker/build-push-action@v2.4.0
20 lines
337 B
Go
20 lines
337 B
Go
package vpnunlimited
|
|
|
|
import (
|
|
"math/rand"
|
|
|
|
"github.com/qdm12/gluetun/internal/models"
|
|
)
|
|
|
|
type Provider struct {
|
|
servers []models.VPNUnlimitedServer
|
|
randSource rand.Source
|
|
}
|
|
|
|
func New(servers []models.VPNUnlimitedServer, randSource rand.Source) *Provider {
|
|
return &Provider{
|
|
servers: servers,
|
|
randSource: randSource,
|
|
}
|
|
}
|