mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 14:00:01 -04:00
don't crash on a twisp stream
This commit is contained in:
parent
70ddb2ac21
commit
e7a81bf542
1 changed files with 3 additions and 1 deletions
|
@ -58,6 +58,8 @@ fn format_stream_type(stream_type: StreamType) -> &'static str {
|
|||
match stream_type {
|
||||
StreamType::Tcp => "tcp",
|
||||
StreamType::Udp => "udp",
|
||||
#[cfg(feature = "twisp")]
|
||||
StreamType::Unknown(crate::handle::twisp::STREAM_TYPE) => "twisp",
|
||||
StreamType::Unknown(_) => unreachable!(),
|
||||
}
|
||||
}
|
||||
|
@ -191,7 +193,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
tokio::spawn(async {
|
||||
let mut sig = signal(SignalKind::user_defined1()).unwrap();
|
||||
while sig.recv().await.is_some() {
|
||||
info!("{}", generate_stats().unwrap());
|
||||
info!("Stats:\n{}", generate_stats().unwrap());
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue