Skip to content

Commit d41585b

Browse files
committed
wip
1 parent 17f97d5 commit d41585b

10 files changed

Lines changed: 2533 additions & 1406 deletions

File tree

Cargo.lock

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

crates/wind-core/src/inbound.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub trait AbstractInbound {
77
fn listen(&self, cb: &impl InboundCallback) -> impl FutResult<()>;
88
}
99

10-
pub trait InboundCallback: Send + Sync {
10+
pub trait InboundCallback: Send + Sync + Clone + 'static {
1111
fn handle_tcpstream(&self, target_addr: TargetAddr, stream: impl AbstractTcpStream) -> impl FutResult<()>;
1212
fn handle_udpsocket(&self, socket: impl AbstractUdpSocket + 'static) -> impl FutResult<()>;
1313
}

crates/wind-test/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ tokio-util = { version = "0.7", features = ["codec"] }
1717
tokio-stream = "0.1"
1818
futures-util = { version = "0.3", default-features = false, features = ["sink"] }
1919

20+
# TLS
21+
rustls = "0.23"
22+
rcgen = "0.13"
23+
2024
# Testing
2125
criterion = "0.4"
2226
fast-socks5 = "1.0.0-rc.0"

0 commit comments

Comments
 (0)