Fix: Privado SERVER_HOSTNAME selection

This commit is contained in:
Quentin McGaw
2021-02-14 16:40:48 +00:00
parent 30c1ae651e
commit d686c76db3

View File

@@ -2,7 +2,6 @@ package configuration
import ( import (
"github.com/qdm12/gluetun/internal/constants" "github.com/qdm12/gluetun/internal/constants"
"github.com/qdm12/golibs/params"
) )
func (settings *Provider) privadoLines() (lines []string) { func (settings *Provider) privadoLines() (lines []string) {
@@ -26,8 +25,7 @@ func (settings *Provider) readPrivado(r reader) (err error) {
return err return err
} }
settings.ServerSelection.Hostnames, err = r.env.CSVInside("SERVER_HOSTNAME", settings.ServerSelection.Hostnames, err = r.env.CSVInside("SERVER_HOSTNAME", constants.PrivadoHostnameChoices())
constants.PrivadoHostnameChoices(), params.RetroKeys([]string{"HOSTNAME"}, r.onRetroActive))
if err != nil { if err != nil {
return err return err
} }