hotfix(env): OPENVPN_CIPHERS empty parsing

This commit is contained in:
Quentin McGaw (desktop)
2022-02-06 22:58:23 +00:00
parent 2a19b68b9a
commit ff3f84f9fd

View File

@@ -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 != "" {