From 9bf22703f9eeef5509907fdcbeb92fe1264a237b Mon Sep 17 00:00:00 2001 From: Jonas <92295347+jpx40@users.noreply.github.com> Date: Sun, 25 Feb 2024 20:03:36 +0100 Subject: [PATCH] update --- central/rsrem/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/central/rsrem/src/main.rs b/central/rsrem/src/main.rs index 9f49a18..6a3ec33 100644 --- a/central/rsrem/src/main.rs +++ b/central/rsrem/src/main.rs @@ -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();