mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 14:00:01 -04:00
WispV2Extensions -> WispV2Handshake and motd helpers
This commit is contained in:
parent
36fddc8943
commit
41f2139eb1
7 changed files with 41 additions and 20 deletions
|
@ -38,7 +38,7 @@ use wisp_mux::{
|
|||
udp::{UdpProtocolExtension, UdpProtocolExtensionBuilder},
|
||||
AnyProtocolExtensionBuilder,
|
||||
},
|
||||
ClientMux, StreamType, WispError, WispV2Extensions,
|
||||
ClientMux, StreamType, WispError, WispV2Handshake,
|
||||
};
|
||||
|
||||
#[derive(Debug)]
|
||||
|
@ -198,7 +198,7 @@ async fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
|
|||
.await?
|
||||
.with_no_required_extensions()
|
||||
} else {
|
||||
ClientMux::create(rx, tx, Some(WispV2Extensions::new(extensions)))
|
||||
ClientMux::create(rx, tx, Some(WispV2Handshake::new(extensions)))
|
||||
.await?
|
||||
.with_required_extensions(extension_ids.as_slice())
|
||||
.await?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue