mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 14:00:01 -04:00
let v1 client connect to v2 server
This commit is contained in:
parent
1c22591817
commit
fd94f1245a
1 changed files with 3 additions and 0 deletions
|
@ -423,6 +423,9 @@ impl Packet {
|
|||
{
|
||||
extension.handle_packet(bytes, read, write).await?;
|
||||
Ok(None)
|
||||
} else if packet_type == 0x05 {
|
||||
// Server may send a 0x05 in handshake since it's Wisp v2 but we may be Wisp v1 so we need to ignore 0x05
|
||||
Ok(None)
|
||||
} else {
|
||||
Ok(Some(Self::parse_packet(packet_type, bytes)?))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue