File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 84
84
#define CLI_HISTFILE_DEFAULT ".valkeycli_history"
85
85
#define CLI_RCFILE_ENV "REDISCLI_RCFILE"
86
86
#define CLI_RCFILE_DEFAULT ".valkeyclirc"
87
- #define CLI_AUTH_ENV "REDISCLI_AUTH"
87
+ #define CLI_AUTH_ENV "VALKEYCLI_AUTH"
88
+ #define OLD_CLI_AUTH_ENV "REDISCLI_AUTH"
88
89
#define CLI_CLUSTER_YES_ENV "REDISCLI_CLUSTER_YES"
89
90
90
91
#define CLUSTER_MANAGER_SLOTS 16384
@@ -2907,6 +2908,9 @@ static int parseOptions(int argc, char **argv) {
2907
2908
static void parseEnv (void ) {
2908
2909
/* Set auth from env, but do not overwrite CLI arguments if passed */
2909
2910
char * auth = getenv (CLI_AUTH_ENV );
2911
+ if (auth != NULL ) {
2912
+ auth = getenv (OLD_CLI_AUTH_ENV );
2913
+ }
2910
2914
if (auth != NULL && config .conn_info .auth == NULL ) {
2911
2915
config .conn_info .auth = auth ;
2912
2916
}
You can’t perform that action at this time.
0 commit comments