From ff3f84f9fd1c6ee7de3deed5883e7fd6ca645c09 Mon Sep 17 00:00:00 2001 From: "Quentin McGaw (desktop)" Date: Sun, 6 Feb 2022 22:58:23 +0000 Subject: [PATCH] hotfix(env): `OPENVPN_CIPHERS` empty parsing --- internal/configuration/sources/env/openvpn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 != "" {