chore(env): SERVER_REGIONS variable

- With retro-compatibility with `REGION`
This commit is contained in:
Quentin McGaw
2022-02-05 23:18:58 +00:00
parent 7aab18d197
commit 0e6db2f1c5
3 changed files with 4 additions and 3 deletions

View File

@@ -35,7 +35,8 @@ func (r *Reader) readServerSelection(vpnProvider, vpnType string) (
}
}
ss.Regions = envToCSV("REGION")
_, regionsCSV := r.getEnvWithRetro("SERVER_REGIONS", "REGION")
ss.Regions = lowerAndSplit(regionsCSV)
_, citiesCSV := r.getEnvWithRetro("SERVER_CITIES", "CITY")
ss.Cities = lowerAndSplit(citiesCSV)