chore(env): SERVER_HOSTNAMES variable
- With retro-compatibility with `SERVER_HOSTNAME`
This commit is contained in:
@@ -42,7 +42,10 @@ func (r *Reader) readServerSelection(vpnProvider, vpnType string) (
|
||||
ss.Cities = lowerAndSplit(citiesCSV)
|
||||
|
||||
ss.ISPs = envToCSV("ISP")
|
||||
ss.Hostnames = envToCSV("SERVER_HOSTNAME")
|
||||
|
||||
_, hostnamesCSV := r.getEnvWithRetro("SERVER_HOSTNAMES", "SERVER_HOSTNAME")
|
||||
ss.Hostnames = lowerAndSplit(hostnamesCSV)
|
||||
|
||||
ss.Names = envToCSV("SERVER_NAME")
|
||||
|
||||
if csv := os.Getenv("SERVER_NUMBER"); csv != "" {
|
||||
|
||||
Reference in New Issue
Block a user