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

24 lines
495 B
Go

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