- Require at least 80% of number of servers now to pass - Each provider is in its own package with a common structure - Unzip package with unzipper interface - Openvpn package with extraction and download functions
14 lines
233 B
Go
14 lines
233 B
Go
package privado
|
|
|
|
import (
|
|
"sort"
|
|
|
|
"github.com/qdm12/gluetun/internal/models"
|
|
)
|
|
|
|
func sortServers(servers []models.PrivadoServer) {
|
|
sort.Slice(servers, func(i, j int) bool {
|
|
return servers[i].Hostname < servers[j].Hostname
|
|
})
|
|
}
|