chore(models): common Server & Servers for all providers (#943)
This commit is contained in:
@@ -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]))
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user