Skip to content

Commit

Permalink
chore: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ihciah committed Mar 9, 2023
1 parent 3232408 commit 987bc2e
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 38 deletions.
57 changes: 23 additions & 34 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
authors = ["ihciah <ihciah@gmail.com>"]
description = "A proxy to expose real tls handshake to the firewall."
description = "A proxy to expose real tls handshake to the MITM."
edition = "2021"
keywords = ["proxy", "tls", "shadowsocks"]
license = "MIT/Apache-2.0"
Expand All @@ -10,16 +10,16 @@ repository = "https://github.com/ihciah/shadow-tls"
version = "0.2.19"

[dependencies]
monoio = {version = "0.0.9"}
monoio-rustls-fork-shadow-tls = {version = "0.0.8-mod.2"}
monoio = {version = "0.1.0"}
monoio-rustls-fork-shadow-tls = {version = "0.1.0-mod.0"}
rustls-fork-shadow-tls = {version = "0.20.9-mod.2", default-features = false}

anyhow = "1"
byteorder = "1"
clap = {version = "4", features = ["derive"]}
ctrlc = {version = "3", features = ["termination"]}
hmac = "0.12"
local-sync = "0.0.5"
local-sync = "0.1.0"
pin-project-lite = "0.2"
rand = "0.8"
rustc-hash = "1"
Expand Down
1 change: 1 addition & 0 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ impl TryFrom<&str> for TlsAddrs {

impl std::fmt::Display for TlsAddrs {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "(wildcard-sni:{})", self.wildcard_sni)?;
for (k, v) in self.dispatch.iter() {
write!(f, "{k}->{v};")?;
}
Expand Down
10 changes: 10 additions & 0 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ impl Default for WildcardSNI {
}
}

impl std::fmt::Display for WildcardSNI {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
WildcardSNI::Off => write!(f, "off"),
WildcardSNI::Authed => write!(f, "authed"),
WildcardSNI::All => write!(f, "all"),
}
}
}

pub(crate) async fn copy_until_eof<R, W>(mut read_half: R, mut write_half: W) -> std::io::Result<()>
where
R: monoio::io::AsyncReadRent,
Expand Down

0 comments on commit 987bc2e

Please sign in to comment.