Maintenance: split each provider in a package
- Fix VyprVPN port - Fix missing Auth overrides
This commit is contained in:
19
internal/provider/surfshark/provider.go
Normal file
19
internal/provider/surfshark/provider.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package surfshark
|
||||
|
||||
import (
|
||||
"math/rand"
|
||||
|
||||
"github.com/qdm12/gluetun/internal/models"
|
||||
)
|
||||
|
||||
type Surfshark struct {
|
||||
servers []models.SurfsharkServer
|
||||
randSource rand.Source
|
||||
}
|
||||
|
||||
func New(servers []models.SurfsharkServer, randSource rand.Source) *Surfshark {
|
||||
return &Surfshark{
|
||||
servers: servers,
|
||||
randSource: randSource,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user