mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-29 03:51:31 +00:00
Fix handle missing err on quic sniff
This commit is contained in:
parent
76236a0b75
commit
e0cfc33fe2
|
@ -163,6 +163,9 @@ func QUICClientHello(ctx context.Context, packet []byte) (*adapter.InboundContex
|
||||||
}
|
}
|
||||||
decryptedReader := bytes.NewReader(decrypted)
|
decryptedReader := bytes.NewReader(decrypted)
|
||||||
frameType, err := decryptedReader.ReadByte()
|
frameType, err := decryptedReader.ReadByte()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
if frameType != 0x6 {
|
if frameType != 0x6 {
|
||||||
// not crypto frame
|
// not crypto frame
|
||||||
return &adapter.InboundContext{Protocol: C.ProtocolQUIC}, nil
|
return &adapter.InboundContext{Protocol: C.ProtocolQUIC}, nil
|
||||||
|
|
Loading…
Reference in a new issue