mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-06 20:10:11 +02:00
54b7e23974
- New package to avoid package import cycles
24 lines
547 B
Go
24 lines
547 B
Go
package privatevpn
|
|
|
|
import (
|
|
"math/rand"
|
|
|
|
"github.com/qdm12/gluetun/internal/constants/providers"
|
|
"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(providers.Privatevpn),
|
|
}
|
|
}
|