diff --git a/component/sniffer/dispatcher.go b/component/sniffer/dispatcher.go index 4734bda1..7bb52ebf 100644 --- a/component/sniffer/dispatcher.go +++ b/component/sniffer/dispatcher.go @@ -88,6 +88,7 @@ func (sd *SnifferDispatcher) sniffDomain(conn *CN.BufferedConn, metadata *C.Meta if sniffer.SupportNetwork() == C.TCP { conn.SetReadDeadline(time.Now().Add(3 * time.Second)) _, err := conn.Peek(1) + conn.SetReadDeadline(time.Time{}) if err != nil { _, ok := err.(*net.OpError) if ok {