fix: fixing revshell example and its routes

This commit is contained in:
Andrew Rioux
2023-05-12 01:16:52 -04:00
parent 4123175eda
commit 5ab43a10fe
4 changed files with 30 additions and 9 deletions

View File

@@ -149,7 +149,7 @@ async fn handle_command(
let cmd_str = std::str::from_utf8(cmd.as_bytes());
match cmd_str.map(|c| c.split(" ").collect::<Vec<_>>()).as_deref() {
Ok(["exit"]) => {
send_exit.send(()).await;
let _ = send_exit.send(()).await;
return Ok(());
}
Ok(["cd", dir]) => {