perf(fake-tcp) reduce the number of clone() calls in hot path

This commit is contained in:
Datong Sun
2021-11-18 20:31:57 -08:00
parent 91988520e5
commit 583cdbe300
3 changed files with 23 additions and 39 deletions

View File

@@ -108,6 +108,7 @@ async fn main() {
} else {
panic!("only IPv4 remote address is supported");
};
info!("Remote address is: {}", remote_addr);
let tun_local: Ipv4Addr = matches
.value_of("tun_local")

View File

@@ -77,6 +77,7 @@ async fn main() {
.expect("bad remote address or host")
.next()
.expect("unable to resolve remote host name");
info!("Remote address is: {}", remote_addr);
let tun_local: Ipv4Addr = matches
.value_of("tun_local")