chore: adjust code

This commit is contained in:
Meta Gowork 2022-04-12 21:39:31 +08:00
parent 75ce6b59bf
commit 21446ba5d4

View file

@ -53,13 +53,13 @@ func (sd *SnifferDispatcher) cover(conn *CN.BufferedConn, metadata *C.Metadata)
bufferedLen := conn.Buffered()
bytes, err := conn.Peek(bufferedLen)
if err != nil {
log.Warnln("[Sniffer] the data lenght not enough")
log.Debugln("[Sniffer] the data lenght not enough")
continue
}
host, err := sniffer.SniffTCP(bytes)
if err != nil {
log.Warnln("[Sniffer][%s] Sniff data failed", sniffer.Protocol())
log.Debugln("[Sniffer][%s] Sniff data failed", sniffer.Protocol())
continue
}
metadata.Host = host