port forward (#736)

* support tcp port forward
* support udp port forward
* command line option for port forward
This commit is contained in:
Sijie.Sun
2025-04-01 09:59:53 +08:00
committed by GitHub
parent 8dc8c7d9e2
commit c142db301a
19 changed files with 955 additions and 143 deletions
+1
View File
@@ -454,6 +454,7 @@ pub mod tests {
let Ok(msg) = item else {
continue;
};
tracing::debug!(?msg, "recv a msg, try echo back");
if let Err(_) = send.send(msg).await {
break;
}