diff --git a/Dockerfile b/Dockerfile index a62d7689..f57cda2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -81,7 +81,7 @@ ENV VPN_SERVICE_PROVIDER=pia \ OPENVPN_VERSION=2.5 \ OPENVPN_VERBOSITY=1 \ OPENVPN_FLAGS= \ - OPENVPN_CIPHER= \ + OPENVPN_CIPHERS= \ OPENVPN_AUTH= \ OPENVPN_PROCESS_USER= \ OPENVPN_IPV6=off \ diff --git a/internal/configuration/sources/env/openvpn.go b/internal/configuration/sources/env/openvpn.go index bd0dde3e..38b2429c 100644 --- a/internal/configuration/sources/env/openvpn.go +++ b/internal/configuration/sources/env/openvpn.go @@ -23,7 +23,9 @@ func (r *Reader) readOpenVPN() ( openVPN.ConfFile = &confFile } - openVPN.Ciphers = envToCSV("OPENVPN_CIPHER") + _, ciphersCSV := r.getEnvWithRetro("OPENVPN_CIPHERS", "OPENVPN_CIPHER") + openVPN.Ciphers = strings.Split(ciphersCSV, ",") + auth := os.Getenv("OPENVPN_AUTH") if auth != "" { openVPN.Auth = &auth