Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jpx40 committed Feb 25, 2024
1 parent ca06bc5 commit 9bf2270
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions central/rsrem/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ fn read_config() {}

fn ssh_connect(user: User, connection: Connection) -> Session {
// https://docs.rs/ssh2/latest/ssh2/
let test = connection.ping();
if !test.0 {
panic!("{}", test.1);
let (test, host, _) = connection.ping();
if !test {
panic!("{}", host);
}

let port = connection.port.unwrap();
Expand Down

0 comments on commit 9bf2270

Please sign in to comment.