Skip to content

Commit 0ca81a3

Browse files
committed
bump deps
1 parent b079e89 commit 0ca81a3

File tree

5 files changed

+74
-52
lines changed

5 files changed

+74
-52
lines changed

Cargo.lock

Lines changed: 61 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wstunnel-cli/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ edition = "2024"
55

66
[dependencies]
77
anyhow = "1.0.98"
8-
clap = { version = "4.5.40", features = ["derive", "env"] }
8+
clap = { version = "4.5.41", features = ["derive", "env"] }
99
fdlimit = "0.3.0"
10-
tokio = { version = "1.45.1", features = ["full"] }
10+
tokio = { version = "1.46.1", features = ["full"] }
1111
tracing = { version = "0.1.41", features = ["log"] }
1212
tracing-subscriber = { version = "0.3.19", features = ["env-filter", "fmt", "local-time"] }
1313
wstunnel = { path = "../wstunnel" , default-features = false, features = ["clap"] }

wstunnel/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ scopeguard = "1.2.0"
1313

1414
bb8 = { version = "0.9.0", features = [] }
1515
bytes = { version = "1.10.1", features = [] }
16-
clap = { version = "4.5.40", features = ["derive", "env"], optional = true }
16+
clap = { version = "4.5.41", features = ["derive", "env"], optional = true }
1717
fast-socks5 = { version = "0.10.0", features = [] }
1818
fastwebsockets = { version = "0.10.0", features = ["upgrade", "simd", "unstable-split"] }
1919
futures-util = { version = "0.3.31" }
2020
ppp = { version = "2.3.0", features = [] }
21-
async-channel = { version = "2.3.1", features = [] }
21+
async-channel = { version = "2.5.0", features = [] }
2222
arc-swap = { version = "1.7.1", features = [] }
2323

2424
# For config file parsing
@@ -28,22 +28,22 @@ serde_yaml = { version = "0.9.34", features = [] }
2828
ipnet = { version = "2.11.0", features = ["serde"] }
2929

3030
hyper = { version = "1.6.0", features = ["client", "http1", "http2"] }
31-
hyper-util = { version = "0.1.14", features = ["tokio", "server", "server-auto"] }
31+
hyper-util = { version = "0.1.15", features = ["tokio", "server", "server-auto"] }
3232
http-body-util = { version = "0.1.3" }
3333
jsonwebtoken = { version = "9.3.1", default-features = false }
3434
log = "0.4.27"
3535
nix = { version = "0.30.1", features = ["socket", "net", "uio"] }
3636
parking_lot = "0.12.4"
3737
pin-project = "1"
38-
notify = { version = "8.0.0", features = [] }
38+
notify = { version = "8.1.0", features = [] }
3939
httparse = { version = "1.10.1", features = [] }
4040

4141
rustls-native-certs = { version = "0.8.1", features = [] }
4242
rustls-pemfile = { version = "2.2.0", features = [] }
4343
x509-parser = "0.17.0"
4444
serde = { version = "1.0.219", features = ["derive"] }
45-
socket2 = { version = "0.5.10", features = [] }
46-
tokio = { version = "1.45.1", features = ["io-std", "net", "signal", "sync", "time"] }
45+
socket2 = { version = "0.6.0", features = ["all"] }
46+
tokio = { version = "1.46.1", features = ["io-std", "net", "signal", "sync", "time"] }
4747
tokio-stream = { version = "0.1.17", features = ["net"] }
4848

4949
tracing = { version = "0.1.41", features = ["log"] }
@@ -53,7 +53,7 @@ uuid = { version = "1.17.0", features = ["v7", "serde"] }
5353
derive_more = { version = "2.0.1", features = ["display", "error"] }
5454

5555
tokio-rustls = { version = "0.26.2", default-features = false, features = ["logging", "tls12"] }
56-
rcgen = { version = "0.13.2", default-features = false, features = [] }
56+
rcgen = { version = "0.14.2", default-features = false, features = [] }
5757
hickory-resolver = { version = "0.25.2", default-features = false, features = ["system-config", "tokio", "rustls-platform-verifier"] }
5858
aws-lc-rs = { version = "*", optional = true }
5959

wstunnel/src/protocols/tcp/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use url::{Host, Url};
2121

2222
pub fn configure_socket(socket: SockRef, so_mark: SoMark) -> Result<(), anyhow::Error> {
2323
socket
24-
.set_nodelay(true)
24+
.set_tcp_nodelay(true)
2525
.with_context(|| format!("cannot set no_delay on socket: {:?}", io::Error::last_os_error()))?;
2626

2727
#[cfg(not(any(target_os = "windows", target_os = "openbsd")))]
@@ -219,7 +219,7 @@ pub async fn run_server(bind: SocketAddr, ip_transparent: bool) -> Result<TcpLis
219219
#[cfg(target_os = "linux")]
220220
if ip_transparent {
221221
info!("TCP server listening in TProxy mode");
222-
socket2::SockRef::from(&listener).set_ip_transparent(ip_transparent)?;
222+
socket2::SockRef::from(&listener).set_ip_transparent_v4(ip_transparent)?;
223223
}
224224

225225
Ok(TcpListenerStream::new(listener))

wstunnel/src/protocols/udp/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ pub fn configure_tproxy(listener: &UdpSocket) -> anyhow::Result<()> {
434434
use std::net::IpAddr;
435435
use std::os::fd::AsFd;
436436

437-
socket2::SockRef::from(&listener).set_ip_transparent(true)?;
437+
socket2::SockRef::from(&listener).set_ip_transparent_v4(true)?;
438438
match listener.local_addr().unwrap().ip() {
439439
IpAddr::V4(_) => {
440440
nix::sys::socket::setsockopt(&listener.as_fd(), nix::sys::socket::sockopt::Ipv4OrigDstAddr, &true)?;
@@ -488,7 +488,7 @@ pub fn mk_send_socket_tproxy(listener: &Arc<UdpSocket>) -> anyhow::Result<Arc<Ud
488488
}
489489

490490
let socket = Socket::new(Domain::for_address(remote_addr), Type::DGRAM, Some(Protocol::UDP))?;
491-
socket.set_ip_transparent(true)?;
491+
socket.set_ip_transparent_v4(true)?;
492492
socket.set_reuse_address(true)?;
493493
socket.set_reuse_port(true)?;
494494
socket.bind(&SockAddr::from(remote_addr))?;

0 commit comments

Comments
 (0)