Files
gluetun/internal/params/privado.go

15 lines
469 B
Go
Raw Normal View History

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