From c6fc12dc4e0242ce2f8fe8aa49778d2593f31169 Mon Sep 17 00:00:00 2001 From: iliyian <40202126+iliyian@users.noreply.github.com> Date: Wed, 11 Feb 2026 13:41:54 +0800 Subject: [PATCH] fix(record_detect): use configured network type instead of hardcoded tcp The dial call in DetectPostHandshakeRecordsLens was hardcoded to "tcp", ignoring the network type specified in the config. This now uses config.Type to respect the intended protocol. --- record_detect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/record_detect.go b/record_detect.go index d2399c3..71b29bc 100644 --- a/record_detect.go +++ b/record_detect.go @@ -27,7 +27,7 @@ func DetectPostHandshakeRecordsLens(config *Config) { GlobalPostHandshakeRecordsLens.Store(key, []int{}) } }() - target, err := net.Dial("tcp", config.Dest) + target, err := net.Dial(config.Type, config.Dest) if err != nil { return }