2020-11-08 20:56:49 -05:00
|
|
|
package params
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/qdm12/gluetun/internal/constants"
|
|
|
|
|
)
|
|
|
|
|
|
2020-11-09 23:17:22 +00:00
|
|
|
// GetPrivadoHostnames obtains the hostnames for the Privado server from the
|
|
|
|
|
// environment variable HOSTNAME.
|
|
|
|
|
func (r *reader) GetPrivadoHostnames() (hosts []string, err error) {
|
|
|
|
|
return r.envParams.GetCSVInPossibilities("HOSTNAME", constants.PrivadoHostnameChoices())
|
2020-11-08 20:56:49 -05:00
|
|
|
}
|