Skip to content

Commit

Permalink
use librealm_io v0.3.2, kaminari lib v0.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
zephyrchien committed May 22, 2022
1 parent 2a01f2e commit c25030f
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 16 deletions.
15 changes: 8 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ Client side options:

- `sni=<sni>`* : set sni.

- `alpn=<alpn>`: set alpn. e.g.: `h2,http/1.1`.

- `0rtt`: enable early data.

- `insecure`: skip server cert verification.
Expand Down
6 changes: 3 additions & 3 deletions cmd/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kaminari-cmd"
version = "0.5.2"
version = "0.5.3"
edition = "2021"
authors = ["zephyr <[email protected]>"]
repository = "https://github.com/zephyrchien/kaminari/cmd"
Expand All @@ -9,8 +9,8 @@ readme = "README.md"
license = "GPL-3.0"

[dependencies]
kaminari = "0.7.2"
realm_io = "0.2.7"
kaminari = "0.8.3"
realm_io = "0.3.2"
tokio = { version = "1", features = ["rt", "net", "macros"] }
anyhow = "1"

Expand Down
2 changes: 2 additions & 0 deletions cmd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ Client side options:

- `sni=<sni>`* : set sni.

- `alpn=<alpn>`: set alpn. e.g.: `h2,http/1.1`.

- `0rtt`: enable early data.

- `insecure`: skip server cert verification.
Expand Down
4 changes: 1 addition & 3 deletions cmd/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,5 @@ where
let buf1 = CopyBuffer::new(buf1.into_boxed_slice());
let buf2 = CopyBuffer::new(buf2.into_boxed_slice());

let (res, _, _) = bidi_copy_buf(&mut local, &mut remote, buf1, buf2).await;

res
bidi_copy_buf(&mut local, &mut remote, buf1, buf2).await
}
4 changes: 1 addition & 3 deletions cmd/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,5 @@ async fn relay<T: AsyncAccept<TcpStream>>(
let buf1 = CopyBuffer::new(buf1.into_boxed_slice());
let buf2 = CopyBuffer::new(buf2.into_boxed_slice());

let (res, _, _) = bidi_copy_buf(&mut local, &mut remote, buf1, buf2).await;

res
bidi_copy_buf(&mut local, &mut remote, buf1, buf2).await
}

0 comments on commit c25030f

Please sign in to comment.