WispV2Extensions -> WispV2Handshake and motd helpers

This commit is contained in:
Toshit Chawda 2024-10-25 18:23:16 -07:00
parent 36fddc8943
commit 41f2139eb1
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
7 changed files with 41 additions and 20 deletions

View file

@ -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
};