Maint: migrate Cyberghost REGION to COUNTRY

This commit is contained in:
Quentin McGaw (desktop)
2021-09-23 13:28:32 +00:00
parent 1c0a3ed1a4
commit 625de1c834
13 changed files with 1349 additions and 1663 deletions

View File

@@ -21,12 +21,12 @@ func getPossibleServers() (possibleServers hostToServer) {
possibleServers = make(hostToServer, n) // key is the host
for groupID, groupName := range groups {
for countryCode, region := range possibleCountryCodes {
for countryCode, country := range possibleCountryCodes {
const domain = "cg-dialup.net"
possibleHost := groupID + "-" + countryCode + "." + domain
possibleServer := models.CyberghostServer{
Hostname: possibleHost,
Region: region,
Country: country,
Group: groupName,
}
possibleServers[possibleHost] = possibleServer