24 lines
537 B
Go
24 lines
537 B
Go
package cyberghost
|
|
|
|
import (
|
|
"math/rand"
|
|
|
|
"github.com/qdm12/gluetun/internal/constants"
|
|
"github.com/qdm12/gluetun/internal/models"
|
|
"github.com/qdm12/gluetun/internal/provider/utils"
|
|
)
|
|
|
|
type Cyberghost struct {
|
|
servers []models.CyberghostServer
|
|
randSource rand.Source
|
|
utils.NoPortForwarder
|
|
}
|
|
|
|
func New(servers []models.CyberghostServer, randSource rand.Source) *Cyberghost {
|
|
return &Cyberghost{
|
|
servers: servers,
|
|
randSource: randSource,
|
|
NoPortForwarder: utils.NewNoPortForwarding(constants.Cyberghost),
|
|
}
|
|
}
|