From de105c08f6c8ea91723c77a45c2c0f4a5d3e07d2 Mon Sep 17 00:00:00 2001 From: gVisor bot 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 {