Improve stdio tunnel on windows
- Handle CTRL+C to exit properly - Restore terminal mode at exit - Use logger to stderr
This commit is contained in:
parent
0595e23050
commit
9b82006c6e
3 changed files with 41 additions and 28 deletions
|
@ -167,7 +167,7 @@ async fn run_tunnel(
|
|||
Ok((remote, Box::pin(local_rx), Box::pin(local_tx)))
|
||||
}
|
||||
#[cfg(not(unix))]
|
||||
LocalProtocol::ReverseUnix { ref path } => {
|
||||
LocalProtocol::ReverseUnix { .. } => {
|
||||
error!("Received an unsupported target protocol {:?}", remote);
|
||||
Err(anyhow::anyhow!("Invalid upgrade request"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue