chore(env): OPENVPN_CIPHERS variable

- With retro-compatibility with `OPENVPN_CIPHER`
This commit is contained in:
Quentin McGaw
2022-02-05 22:36:51 +00:00
parent 027664af7b
commit 04956e45c7
2 changed files with 4 additions and 2 deletions

View File

@@ -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