mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 06:20:02 -04:00
add ability to send protocol extension packets
This commit is contained in:
parent
fd94f1245a
commit
6c41c54cf9
5 changed files with 84 additions and 33 deletions
|
@ -164,7 +164,7 @@ async fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
|
|||
extensions.push(Box::new(auth));
|
||||
}
|
||||
|
||||
let (mut mux, fut) = if opts.wisp_v1 {
|
||||
let (mux, fut) = if opts.wisp_v1 {
|
||||
ClientMux::new(rx, tx, None).await?
|
||||
} else {
|
||||
ClientMux::new(rx, tx, Some(extensions.as_slice())).await?
|
||||
|
@ -212,7 +212,7 @@ async fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
|
|||
|
||||
let start_time = Instant::now();
|
||||
for _ in 0..opts.streams {
|
||||
let (mut cr, mut cw) = mux
|
||||
let (cr, cw) = mux
|
||||
.client_new_stream(StreamType::Tcp, addr_dest.clone(), addr_dest_port)
|
||||
.await?
|
||||
.into_split();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue