From b0dd74e74eff89e5397d196c7fdeab93768c4c60 Mon Sep 17 00:00:00 2001 From: adlyq <2833154405@qq.com> Date: Fri, 22 Apr 2022 17:00:39 +0800 Subject: [PATCH] fix: sniffer --- component/sniffer/dispatcher.go | 1 + 1 file changed, 1 insertion(+) 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 {