mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-07 20:40:13 +02:00
fix(cyberghost): compat log if COUNTRY is empty
This commit is contained in:
+3
-1
@@ -28,8 +28,10 @@ func (r *Reader) readServerSelection(vpnProvider, vpnType string) (
|
||||
countriesCSV := os.Getenv("COUNTRY")
|
||||
if vpnProvider == constants.Cyberghost && countriesCSV == "" {
|
||||
// Retro-compatibility
|
||||
r.onRetroActive("REGION", "COUNTRY")
|
||||
countriesCSV = os.Getenv("REGION")
|
||||
if countriesCSV != "" {
|
||||
r.onRetroActive("REGION", "COUNTRY")
|
||||
}
|
||||
}
|
||||
if countriesCSV != "" {
|
||||
ss.Countries = lowerAndSplit(countriesCSV)
|
||||
|
||||
Reference in New Issue
Block a user