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

@@ -81,7 +81,7 @@ ENV VPN_SERVICE_PROVIDER=pia \
OPENVPN_VERSION=2.5 \ OPENVPN_VERSION=2.5 \
OPENVPN_VERBOSITY=1 \ OPENVPN_VERBOSITY=1 \
OPENVPN_FLAGS= \ OPENVPN_FLAGS= \
OPENVPN_CIPHER= \ OPENVPN_CIPHERS= \
OPENVPN_AUTH= \ OPENVPN_AUTH= \
OPENVPN_PROCESS_USER= \ OPENVPN_PROCESS_USER= \
OPENVPN_IPV6=off \ OPENVPN_IPV6=off \

View File

@@ -23,7 +23,9 @@ func (r *Reader) readOpenVPN() (
openVPN.ConfFile = &confFile 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") auth := os.Getenv("OPENVPN_AUTH")
if auth != "" { if auth != "" {
openVPN.Auth = &auth openVPN.Auth = &auth