mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 06:20:02 -04:00
remove invalidstreamtype to allow for custom protocol extension streams
This commit is contained in:
parent
b8eb13903b
commit
397fd43dc5
3 changed files with 49 additions and 36 deletions
|
@ -247,6 +247,10 @@ async fn handle_mux(packet: ConnectPacket, mut stream: MuxStream) -> Result<bool
|
|||
}
|
||||
}
|
||||
}
|
||||
StreamType::Unknown(_) => {
|
||||
stream.close(CloseReason::ServerStreamInvalidInfo).await?;
|
||||
return Ok(false);
|
||||
}
|
||||
}
|
||||
Ok(true)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue