chore(env): SERVER_CITIES variable

- With retro-compatibility with `CITY`
This commit is contained in:
Quentin McGaw
2022-02-05 23:16:47 +00:00
parent d6b39e66d1
commit 7aab18d197
2 changed files with 5 additions and 2 deletions

View File

@@ -36,7 +36,10 @@ func (r *Reader) readServerSelection(vpnProvider, vpnType string) (
}
ss.Regions = envToCSV("REGION")
ss.Cities = envToCSV("CITY")
_, citiesCSV := r.getEnvWithRetro("SERVER_CITIES", "CITY")
ss.Cities = lowerAndSplit(citiesCSV)
ss.ISPs = envToCSV("ISP")
ss.Hostnames = envToCSV("SERVER_HOSTNAME")
ss.Names = envToCSV("SERVER_NAME")