mirror of https://mirror.osredm.com/root/redis.git
Add warning message when using password on command line
This commit is contained in:
parent
e344aa4a6d
commit
c082221aef
|
@ -1088,6 +1088,7 @@ static int parseOptions(int argc, char **argv) {
|
|||
} else if (!strcmp(argv[i],"-n") && !lastarg) {
|
||||
config.dbnum = atoi(argv[++i]);
|
||||
} else if (!strcmp(argv[i],"-a") && !lastarg) {
|
||||
fputs("Warning: Using a password on the command line interface can be insecure.\n", stderr);
|
||||
config.auth = argv[++i];
|
||||
} else if (!strcmp(argv[i],"-u") && !lastarg) {
|
||||
parseRedisUri(argv[++i]);
|
||||
|
|
Loading…
Reference in New Issue