diff --git a/Cargo.lock b/Cargo.lock index fd2d8d8d..7cd16a7c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2195,7 +2195,7 @@ dependencies = [ [[package]] name = "ruci" -version = "0.0.5" +version = "0.0.6" dependencies = [ "anyhow", "async-trait", @@ -2255,7 +2255,7 @@ dependencies = [ [[package]] name = "rucimp" -version = "0.0.5" +version = "0.0.6" dependencies = [ "anyhow", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 6de1ad46..27203705 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ workspace = { members = [ "rucimp" ,"./", "crates/macro_map", "crates/ruci-cmd"] } [package] name = "ruci" -version = "0.0.5" +version = "0.0.6" edition = "2021" readme = "README.md" description = "a network proxy framework" diff --git a/doc/notes.md b/doc/notes.md index 3874fec7..984ec4cd 100644 --- a/doc/notes.md +++ b/doc/notes.md @@ -409,6 +409,10 @@ run `ulimit -a` to see. run `ulimit -n 1000000` as root to set ruci-cmd tproxy 在启动监听后, 进程所打开的文件在12个左右. +## ip relay + +在转发 ip 包时,如果通过tcp 传, 注意粘包问题. 可通过套 ws/h2 等 有 长度包头的 协议来解决 + ## 其它 使用 anyhow 的 context 会导致变慢, 若有初始化开销 则要改用 with_context diff --git a/rucimp/Cargo.toml b/rucimp/Cargo.toml index b35c34f0..3f908f96 100644 --- a/rucimp/Cargo.toml +++ b/rucimp/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rucimp" -version = "0.0.5" +version = "0.0.6" edition = "2021" [dependencies]