Skip to content

Commit

Permalink
Merge pull request #61 from p-l-/fix-ssh-output
Browse files Browse the repository at this point in the history
Display data using safe byte2str()
  • Loading branch information
Frky authored Aug 25, 2022
2 parents 754232d + 321b881 commit 6416122
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/proto/ssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,7 @@ pub fn repl<'a>(
}
let repl_data = b"SSH-2.0-1\r\n".to_vec();
debug!("sending SSH answer");
warn!(
"SSH server banner to {}",
std::str::from_utf8(&pstate.ssh_software)
.unwrap()
.trim_end()
);
warn!("SSH server banner to {}", byte2str(&pstate.ssh_software));
Some(repl_data)
}

Expand Down

0 comments on commit 6416122

Please sign in to comment.