20 lines
325 B
Go
20 lines
325 B
Go
package ipvanish
|
|
|
|
import (
|
|
"math/rand"
|
|
|
|
"github.com/qdm12/gluetun/internal/models"
|
|
)
|
|
|
|
type Ipvanish struct {
|
|
servers []models.IpvanishServer
|
|
randSource rand.Source
|
|
}
|
|
|
|
func New(servers []models.IpvanishServer, randSource rand.Source) *Ipvanish {
|
|
return &Ipvanish{
|
|
servers: servers,
|
|
randSource: randSource,
|
|
}
|
|
}
|