chore(models): common Server & Servers for all providers (#943)

This commit is contained in:
Quentin McGaw
2022-04-16 22:25:36 +02:00
parent aa729515b9
commit 5d66c193aa
148 changed files with 27081 additions and 27795 deletions

View File

@@ -9,7 +9,7 @@ import (
)
func (n *Nordvpn) filterServers(selection settings.ServerSelection) (
servers []models.NordvpnServer, err error) {
servers []models.Server, err error) {
selectedNumbers := make([]string, len(selection.Numbers))
for i := range selection.Numbers {
selectedNumbers[i] = strconv.Itoa(int(selection.Numbers[i]))

View File

@@ -9,12 +9,12 @@ import (
)
type Nordvpn struct {
servers []models.NordvpnServer
servers []models.Server
randSource rand.Source
utils.NoPortForwarder
}
func New(servers []models.NordvpnServer, randSource rand.Source) *Nordvpn {
func New(servers []models.Server, randSource rand.Source) *Nordvpn {
return &Nordvpn{
servers: servers,
randSource: randSource,