diff --git a/internal/configuration/sources/env/openvpn.go b/internal/configuration/sources/env/openvpn.go index 35e2e80e..d353e4e9 100644 --- a/internal/configuration/sources/env/openvpn.go +++ b/internal/configuration/sources/env/openvpn.go @@ -23,8 +23,8 @@ func (r *Reader) readOpenVPN() ( openVPN.ConfFile = &confFile } - _, ciphersCSV := r.getEnvWithRetro("OPENVPN_CIPHERS", "OPENVPN_CIPHER") - openVPN.Ciphers = strings.Split(ciphersCSV, ",") + ciphersKey, _ := r.getEnvWithRetro("OPENVPN_CIPHERS", "OPENVPN_CIPHER") + openVPN.Ciphers = envToCSV(ciphersKey) auth := os.Getenv("OPENVPN_AUTH") if auth != "" {