chore: decrease memory copy in quic sniffer

This commit is contained in:
wwqgtxx
2023-10-19 23:51:37 +08:00
parent 8e637a2ec7
commit ea7e15b447
5 changed files with 41 additions and 35 deletions

View File

@ -4,6 +4,7 @@ import "github.com/Dreamacro/clash/constant"
type Sniffer interface {
SupportNetwork() constant.NetWork
// SniffData must not change input bytes
SniffData(bytes []byte) (string, error)
Protocol() string
SupportPort(port uint16) bool