Feature: IVPN support
This commit is contained in:
19
internal/provider/ivpn/provider.go
Normal file
19
internal/provider/ivpn/provider.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package ivpn
|
||||
|
||||
import (
|
||||
"math/rand"
|
||||
|
||||
"github.com/qdm12/gluetun/internal/models"
|
||||
)
|
||||
|
||||
type Ivpn struct {
|
||||
servers []models.IvpnServer
|
||||
randSource rand.Source
|
||||
}
|
||||
|
||||
func New(servers []models.IvpnServer, randSource rand.Source) *Ivpn {
|
||||
return &Ivpn{
|
||||
servers: servers,
|
||||
randSource: randSource,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user