Skip to content

Commit

Permalink
Do not panic at non-ssh server connections
Browse files Browse the repository at this point in the history
  • Loading branch information
HsuJv committed Oct 13, 2023
1 parent 8735a04 commit feaf186
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/config/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ where
match stream.read(&mut buf) {
Ok(i) => {
// MY TO DO: To Skip the other lines
assert_eq!(&buf[0..4], constant::SSH_MAGIC);
buf.truncate(i);
return Ok(buf);
}
Expand Down

0 comments on commit feaf186

Please sign in to comment.