Files
gluetun/internal/params/vypervpn.go
Quentin McGaw af606463ea Multi options filters, fixes #231 (#262)
* OWNED environment variable for Mullvad
* CSV are now accepted for all servers filtering environment variables
2020-10-18 17:15:42 -04:00

13 lines
369 B
Go

package params
import (
"github.com/qdm12/gluetun/internal/constants"
)
// GetVyprvpnRegions obtains the regions for the Vyprvpn servers from the
// environment variable REGION
func (r *reader) GetVyprvpnRegions() (regions []string, err error) {
choices := append(constants.VyprvpnRegionChoices(), "")
return r.envParams.GetCSVInPossibilities("REGION", choices)
}