Files
gluetun/internal/provider/ivpn/provider.go

24 lines
495 B
Go
Raw Normal View History

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