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

24 lines
523 B
Go

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