chore(env): PRIVATE_INTERNET_ACCESS_OPENVPN_ENCRYPTION_PRESET variable

- With retro-compatibility with `PIA_ENCRYPTION` and `ENCRYPTION`
This commit is contained in:
Quentin McGaw
2022-02-05 22:38:03 +00:00
parent 04956e45c7
commit ae9b3279c3
2 changed files with 4 additions and 2 deletions

View File

@@ -94,7 +94,9 @@ func readBase64OrNil(envKey string) (valueOrNil *string, err error) {
}
func (r *Reader) readPIAEncryptionPreset() (presetPtr *string) {
_, preset := r.getEnvWithRetro("PIA_ENCRYPTION", "ENCRYPTION")
_, preset := r.getEnvWithRetro(
"PRIVATE_INTERNET_ACCESS_OPENVPN_ENCRYPTION_PRESET",
"PIA_ENCRYPTION", "ENCRYPTION")
if preset != "" {
return &preset
}