Files
gluetun/internal/provider/hidemyass/provider.go

24 lines
540 B
Go
Raw Normal View History

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