Files
gluetun/internal/provider/privatevpn/provider.go

24 lines
537 B
Go
Raw Normal View History

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