fix for password in listen command (#2090)

This commit is contained in:
Yeastplume 2018-12-06 16:26:20 +00:00 committed by GitHub
parent 40ccb32be2
commit 995c5a38e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -199,7 +199,7 @@ pub fn parse_listen_args(
args: &ArgMatches,
) -> Result<(), Error> {
// listen args
let pass = match args.value_of("pass") {
let pass = match g_args.password.clone() {
Some(p) => Some(p.to_owned()),
None => Some(prompt_password(&None)),
};