From 71dcf230134b312ee76c9a000268da5dbbc94ba4 Mon Sep 17 00:00:00 2001 From: "Quentin McGaw (desktop)" Date: Sun, 16 Feb 2020 20:29:37 +0000 Subject: [PATCH] Allow empty value for PIA region --- internal/params/pia.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/params/pia.go b/internal/params/pia.go index 70059dcc..8ddf1472 100644 --- a/internal/params/pia.go +++ b/internal/params/pia.go @@ -42,7 +42,7 @@ func (p *paramsReader) GetPIAEncryption() (models.PIAEncryption, error) { // GetPIARegion obtains the region for the PIA server from the // environment variable REGION func (p *paramsReader) GetPIARegion() (region models.PIARegion, err error) { - choices := constants.PIAGeoChoices() + choices := append(constants.PIAGeoChoices(), "") s, err := p.envParams.GetValueIfInside("REGION", choices) if len(s) == 0 { // Suggestion by @rorph https://github.com/rorph s = choices[rand.Int()%len(choices)]