fix(env): accept uppercase SHADOWSOCKS_CIPHER

This commit is contained in:
Quentin McGaw (desktop)
2022-02-09 12:33:47 +00:00
parent 5d4032edf4
commit 576c1ee0c5

View File

@@ -2,6 +2,7 @@ package env
import (
"fmt"
"strings"
"github.com/qdm12/gluetun/internal/configuration/settings"
)
@@ -39,5 +40,5 @@ func (r *Reader) readShadowsocksAddress() (address string) {
func (r *Reader) readShadowsocksCipher() (cipher string) {
_, cipher = r.getEnvWithRetro("SHADOWSOCKS_CIPHER", "SHADOWSOCKS_METHOD")
return cipher
return strings.ToLower(cipher)
}