- 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
15 lines
346 B
Go
15 lines
346 B
Go
package protonvpn
|
|
|
|
import "github.com/qdm12/gluetun/internal/models"
|
|
|
|
func Stringify(servers []models.ProtonvpnServer) (s string) {
|
|
s = "func ProtonvpnServers() []models.ProtonvpnServer {\n"
|
|
s += " return []models.ProtonvpnServer{\n"
|
|
for _, server := range servers {
|
|
s += " " + server.String() + ",\n"
|
|
}
|
|
s += " }\n"
|
|
s += "}"
|
|
return s
|
|
}
|