mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 06:20:02 -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
|
@ -17,7 +17,7 @@ use webpki_roots::TLS_SERVER_ROOTS;
|
|||
use wisp_mux::{
|
||||
extensions::{udp::UdpProtocolExtensionBuilder, AnyProtocolExtensionBuilder},
|
||||
ws::{WebSocketRead, WebSocketWrite},
|
||||
ClientMux, MuxStreamAsyncRW, MuxStreamIo, StreamType, WispV2Extensions,
|
||||
ClientMux, MuxStreamAsyncRW, MuxStreamIo, StreamType, WispV2Handshake,
|
||||
};
|
||||
|
||||
use crate::{
|
||||
|
@ -119,7 +119,7 @@ impl StreamProvider {
|
|||
UdpProtocolExtensionBuilder,
|
||||
)];
|
||||
let extensions = if self.wisp_v2 {
|
||||
Some(WispV2Extensions::new(extensions_vec))
|
||||
Some(WispV2Handshake::new(extensions_vec))
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue