hotfix(env): OPENVPN_CIPHERS empty parsing
This commit is contained in:
@@ -23,8 +23,8 @@ func (r *Reader) readOpenVPN() (
|
|||||||
openVPN.ConfFile = &confFile
|
openVPN.ConfFile = &confFile
|
||||||
}
|
}
|
||||||
|
|
||||||
_, ciphersCSV := r.getEnvWithRetro("OPENVPN_CIPHERS", "OPENVPN_CIPHER")
|
ciphersKey, _ := r.getEnvWithRetro("OPENVPN_CIPHERS", "OPENVPN_CIPHER")
|
||||||
openVPN.Ciphers = strings.Split(ciphersCSV, ",")
|
openVPN.Ciphers = envToCSV(ciphersKey)
|
||||||
|
|
||||||
auth := os.Getenv("OPENVPN_AUTH")
|
auth := os.Getenv("OPENVPN_AUTH")
|
||||||
if auth != "" {
|
if auth != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user