Files
gluetun/internal/provider/vpnunlimited/provider.go
2021-07-26 16:29:40 +00:00

24 lines
539 B
Go

package vpnunlimited
import (
"math/rand"
"github.com/qdm12/gluetun/internal/constants"
"github.com/qdm12/gluetun/internal/models"
"github.com/qdm12/gluetun/internal/provider/utils"
)
type Provider struct {
servers []models.VPNUnlimitedServer
randSource rand.Source
utils.NoPortForwarder
}
func New(servers []models.VPNUnlimitedServer, randSource rand.Source) *Provider {
return &Provider{
servers: servers,
randSource: randSource,
NoPortForwarder: utils.NewNoPortForwarding(constants.VPNUnlimited),
}
}