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
+6
View File
@@ -190,6 +190,12 @@ impl From<SocketAddr> for std::net::SocketAddr {
}
}
impl ToString for SocketAddr {
fn to_string(&self) -> String {
std::net::SocketAddr::from(self.clone()).to_string()
}
}
impl TryFrom<CompressionAlgoPb> for CompressorAlgo {
type Error = anyhow::Error;