mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-07 04:20:12 +02:00
2c77b73ebc
- Fix #410 and #416
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,
|
|
}
|
|
}
|