• antirez's avatar
    redis-cli: really connect to the right server. · 58f1d446
    antirez authored
    I recently introduced populating the autocomplete help array with the
    COMMAND command if available. However this was performed before parsing
    the arguments, defaulting to instance 6379. After the connection is
    performed it remains stable.
    
    The effect is that if there is an instance running on port 6339,
    whatever port you specify is ignored and 6379 is connected to instead.
    The right port will be selected only after a reconnection.
    
    Close #3314.
    58f1d446
redis-cli.c 87.9 KB