mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
chore(env): SERVER_REGIONS variable
- With retro-compatibility with `REGION`
This commit is contained in:
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user