mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 22:10:01 -04:00
add to simple wisp client
This commit is contained in:
parent
577ce71b89
commit
24ccd8d393
7 changed files with 82 additions and 9 deletions
|
@ -7,7 +7,7 @@ use log::LevelFilter;
|
|||
use regex::RegexSet;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use wisp_mux::extensions::{
|
||||
cert::CertAuthProtocolExtensionBuilder,
|
||||
cert::{CertAuthProtocolExtension, CertAuthProtocolExtensionBuilder},
|
||||
motd::MotdProtocolExtensionBuilder,
|
||||
password::{PasswordProtocolExtension, PasswordProtocolExtensionBuilder},
|
||||
udp::UdpProtocolExtensionBuilder,
|
||||
|
@ -304,6 +304,7 @@ impl WispConfig {
|
|||
get_certificates_from_paths(self.certificate_extension_keys.clone())
|
||||
.await?,
|
||||
)));
|
||||
required_extensions.push(CertAuthProtocolExtension::ID);
|
||||
}
|
||||
None => {}
|
||||
}
|
||||
|
|
|
@ -179,9 +179,7 @@ async fn handle_stream(
|
|||
let id = muxstream.stream_id;
|
||||
let (mut rx, mut tx) = muxstream.into_io().into_asyncrw().into_split();
|
||||
|
||||
match twisp::handle_twisp(id, &mut rx, &mut tx, twisp_map.clone(), pty, cmd)
|
||||
.await
|
||||
{
|
||||
match twisp::handle_twisp(id, &mut rx, &mut tx, twisp_map.clone(), pty, cmd).await {
|
||||
Ok(()) => {
|
||||
let _ = closer.close(CloseReason::Voluntary).await;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue